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.
Define it in functions.php, which is loaded on every request.
Not the answer you're looking for? Browse other questions tagged templates single globals or ask your own question.