john_foster
Member
Posted 1 year ago #
Hey there guys.
I have a question here that is probably surprisingly easy to figure out but I just don't know how to do it.
How do I disregard a specific category from the Loop? My intention is to Loop that left out category on a separate column.
Thanks for the help.
try and add some code with query_posts() before the loop:
http://codex.wordpress.org/Function_Reference/query_posts
http://codex.wordpress.org/Function_Reference/query_posts#Category_Parameters
for instance:
<?php global $query_string; query_posts( $query_string . '&cat=-7'); ?>
where 7 is the id of the category to exclude
john_foster
Member
Posted 1 year ago #
Awesome. After a bit of tweaking I have it working Nicely. You can check out the improvements at my site http://www.htarcade.com . I was making use of the secondary loop in the Price Drops column.
Thanks for the help.