If in Category issues
-
i just can not get this to work at all!
[please remember to mark your code using the ‘code’ button]
<?php if (in_category('76')) { ?> - Manchester Utd - <?php } elseif (in_category('92')) { ?> - West Ham Utd - <?php } else { ?> <p>This is some generic text to describe all other category pages, I could be left blank</p> <?php } ?>It will always show – Manchester Utd – in the west ham category and im jsut not sure why.
Im trying to change the logo in the header.php file per category so that it shows for parent category and all sub posts.
help appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘If in Category issues’ is closed to new replies.