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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)