Exclude certain categories from being displayed in wordpress

hide categoryTwo ways to hide posts from certain categories to be displayed on the blog. You can either put this code inside the loop

if ( have_posts() ) : query_posts($query_string .’&cat=-1,-2′); while ( have_posts() ) : the_post();

or you can use Advanced Category Excluder.

One Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.