Exclude certain categories from being displayed in wordpress

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

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

or you can use Advanced Category Excluder.

Ashesh

सयौ थुङ्गा फूलका हामी एउटै माला नेपाली, Welcome to my webpage. I'm from the Himalayan Country of Nepal. Well talking about me, I like mostly Web programming and Designing and furthermore I like Philosophical literature, Photography, Social networking. And I am Romantic and Sentimental person to some extent. Read more...

View Comments

  • I've been looking all over for this. Thank you! Sometimes the WP forums are worthless. I'm glad there are people out there who love WP enough to share their knowledge with everyone else.