first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

PHP and WordPress.org: “Exclude Categories from Your RSS Feed”; smashingmagazine.com

First, get the numeric ID of the category you want to exclude. If you don’t know how to get the ID of a particular category, you can learn how here. Once you have the ID of the category you want to exclude from your RSS feed, edit the functions.php file in your theme. Create the file if it doesn’t exist.

function myFilter($query) {
    if ($query->is_feed) {
        $query->set('cat','-5'); //Category ID
    }
    return $query;
}

add_filter('pre_get_posts','myFilter');

[http://www.smashingmagazine.com/2008/ 12/02/10-useful-rss-hacks-for-wordpress/]

mod date: 2009-08-09T16:57:57.000Z