• How can I include a global variable with a plugin (or even directly in the template)?

    I noticed that if in the header.php I create a variable $x = “something”; then if I try to echo this variable from another part of the template (e.g. in the index.php) then that variable doesn’t exist. I tried setting it to global but it didn’t work either.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘including global varialbes?’ is closed to new replies.