Title: Create Custom Global variable
Last modified: August 19, 2016

---

# Create Custom Global variable

 *  [benrshep](https://wordpress.org/support/users/benrshep/)
 * (@benrshep)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/create-custom-global-variable/)
 * Hello,
 * I need to create a new global variable that can be changed in the General setting
   menu. What I am looking for is a new input in the form that allows me to change
   a variable that I can access in my php in index.php.
 * The variable is called called current issue and holds a string that represents
   an existing tag. I would like to add this variable into my query call in the 
   loop so I can control which posts are shown depending on the tag.
 * Im not sure if this makes complete sense but if you have any ideas please let
   me know. I got stuck with the add_settings_field() function as I couldn’t figure
   out which file to place it in.
 * thanks
 * ben

Viewing 1 replies (of 1 total)

 *  [jacobanderic](https://wordpress.org/support/users/jacobanderic/)
 * (@jacobanderic)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/create-custom-global-variable/#post-1333291)
 * Hi Ben,
 * I believe this will solve your problem:
    [http://wordpress.org/extend/plugins/custom-configs/](http://wordpress.org/extend/plugins/custom-configs/)

Viewing 1 replies (of 1 total)

The topic ‘Create Custom Global variable’ is closed to new replies.

## Tags

 * [custom-query](https://wordpress.org/support/topic-tag/custom-query/)
 * [Issues](https://wordpress.org/support/topic-tag/issues/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 1 reply
 * 2 participants
 * Last reply from: [jacobanderic](https://wordpress.org/support/users/jacobanderic/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/create-custom-global-variable/#post-1333291)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
