This question already has an answer here:
I've set a global variable in
functions.php like so:
$cat_args = array('cat1', 'cat2', 'cat3');
and tried to use it in a template file:
global $cat_args; if is_cat($args): //do stuff endif;
The conditional returned false. If I
echo $cat_args I get an array. Is there an extra step to passing it to the conditional / is what I'm trying to do possible? Thanks!