I have defined a global variable in one of my template files page.php
. I can access the global variables in my loop. But when the loop displays an individual post in single.php
, the variable has no value. I defined the variable as global in my single.php
.
What am I doing wrong?