Exclude Categories from RSS Feed

function myFilter($query) {
if ($query->is_feed) {
$query->set(‘cat’,’-5′); //Don’t forget to change the category ID =^o^=
}
return $query;
}

add_filter(‘pre_get_posts’,’myFilter’);


Exclude Categories from RSS