I'm using the the following code for an is_category array, which works fine.
<?php if(is_category(array(5,3,7))); ?> ..... <?php } ?>
However whenever I replace 5,3,7 with a php tag ($theme_cats) to reference some category IDs written exactly like 5,3,7 it doesn't work. I know $theme_cats works and when I echo the tag it returns 5,3,7. I assume I need to call the array in another way, can anyone help?
<?php if(is_category(array($theme_cats))); ?> ..... <?php } ?>