Title: use a general variable for all posts
Last modified: August 22, 2016

---

# use a general variable for all posts

 *  [Aboibrahim](https://wordpress.org/support/users/aboibrahim/)
 * (@aboibrahim)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/use-a-general-variable-for-all-posts/)
 * Hi,
 * I have like this
 *     ```
       $SCRurl = "-----------------------";
       $VDID ="-----";
       $HDDurl = function_name("$SCRurl$VDID");
       echo $HDDurl;
       ```
   
 * and it works
    Now I allow other users to make posts in my website I don’t want
   them to know what in variable $SCRurl so I want to put this variable in theme
   and run this variable in every post Where should I put this variable ??? In function.
   php or css or …. if i can’t ,, is there any way to do this thing by other method
 * Thanx

Viewing 1 replies (of 1 total)

 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/use-a-general-variable-for-all-posts/#post-5488673)
 * Could you elaborate a little bit more? For the love of all things do not put 
   that could in any CSS file.

Viewing 1 replies (of 1 total)

The topic ‘use a general variable for all posts’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/use-a-general-variable-for-all-posts/#post-5488673)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
