Wordpress - WordPress Theme variables scope
Apparently global
does the trick.
The problem was that my variable $categories
should have been redefined with a global
in front of it, in each template I needed to use it.
Apparently global
does the trick.
The problem was that my variable $categories
should have been redefined with a global
in front of it, in each template I needed to use it.