Call Chris at (615) 521-1890 for a free quote.
615.521.1890
Nashville Interactive - Home

Blog

excluding certain categories from the wordpress loop or rss feeds

Sep 18 2009

to exclude a certain category of posts from the WP loop:

<?php query_posts(“cat=-46”); ?>
<?php if (have_posts()) : ?>
blah blah blah. and then close with the old:
<?php
//Reset Query
wp_reset_query();
?>

To exclude certain categories from an RSS feed on another webpage (like a non-wp homepage):

http://yourdomain.com/blog/feed/?cat=-46