I am using the following to exclude a category from the website main rss feed , I do have a separate feed though JUST for this excluded category.
THe problem though is when I use the feed link that excludes that category and I select the "redirect" option in the genesis rss theme settings, the feed url redirects improperly. the genesis theme settings say unless I use feedburner, it probably wont work right. Is there a way using a functions file, or any other method for that matter) that I can change the main feed of the site from
http://www.westlawnumc.com/feed/
to
http://www.westlawnumc.com/feed/?cat=-57
without having to use feedburner?
I saw this:
Quote:
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');
|
...but I think the issue here is that this functions code eliminates the category from appearing in ANY feed, but I just need it not to appear int he main site feed. I still need to use this category for its own dedicated feed.