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


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:
//Reset Query

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