WP coding help - how to hide footer for certain categories

LegitAM

WF Premium Member
Apr 7, 2010
1,246
4
0
Hey guys, working on a site right now and Im trying to hide the footers for certain categories.

The info in the footer.php is being used for each category, and when I do the usual if in_category it works, but only for a single category. As soon as I put in any of the others it messes up.

I tried using the array function also but then it removes the footer from every page/post/category on the site...

anyone know how to get around this and make it work?
 


Try something like:

Code:
<?php if (in_category('1')){ ?>
Category 1 Stuff
<?php } else { ?>
Not Category 1 Stuff
<?php } ?>