WordPress Theme variables scope
I need to create a variable that can be accessed throughout my WordPress Theme template files (index.php, header.php etc..). I know function definitions go inside the functions.php template file (in your theme path), but there’s no such thing for variables. For example I constantly need to retrieve Categories in my Theme, so I would like … Read more