I've defined a variable in my child theme header.php.
I'd like to get the value of this variable from one of the templates that is rendered after the request in which the header.php is called.
So, in header I've got this:
$foo = "bar"
If I test for this value with header.php, it returns "bar". But if I test for the value from a template called after the header gets called, I get 'null'.
The first thing I tried was putting 'global $foo' before the definition of $foo. But this didn't change my result.