Variables – assistance
-
OK…
I have made a static page (page-index.php), and am loading a my header (header.php) via the standard <?php get_header(); call.
I have defined a variable in ‘page-index.php’ that I would like to use in a function located in ‘header.php’. Once again, header.php is loaded into ‘page-index.php’.
I have noticed that in wordpress, unless the variable is defined, and used in the same page…the value doesn’t stick…even if the second page (in my case, the header) is loaded by include.
I mean..wtf…any suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Variables – assistance’ is closed to new replies.