Forums

Create Custom Global variable (2 posts)

  1. benrshep
    Member
    Posted 2 years ago #

    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

  2. jacobanderic
    Member
    Posted 2 years ago #

    Hi Ben,

    I believe this will solve your problem:
    http://wordpress.org/extend/plugins/custom-configs/

Topic Closed

This topic has been closed to new replies.

About this Topic