in_category(array) problem…plz help
-
Plz help me out in this
<?php $cat_include = array($include_category);
if (in_category($cat_include)) { ?>
<?php include(TEMPLATEPATH . ‘/new-page.php’); ?> <?php } else { echo ‘nothing’ ; }?>Here if value of $include_category is called from database, it doesnt work n passes to else statement. But if i put the value in array after replacing $include_category, it works perfectly.
I have also checked if the value for $include_category is stored in database by echoing it.
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘in_category(array) problem…plz help’ is closed to new replies.