Put this code in the Functions.php file:
// filter for exluding certain categories
function myFeedExcluder($query) {
if ($query->is_feed) {
$query->set('cat','-12');
}
return $query;
}
add_filter('pre_get_posts','myFeedExcluder');
This will exclude category 12 from your RSS feeds. If you want to exclude more than one category, put them in separated by commas ‘-12,-25,-33′.
Related posts:

Web professional in Malta, Europe. Focusing on building visually stunning websites that are easy to maintain, usually using WordPress as the CMS. Web developing since 1995, loving WordPress for more than 5 years.
Leave a Comment
Let us know your thoughts on this post but remember to place nicely folks!