Excluding Category From WordPress RSS feed
-
I have been trying for a couple hours to exclude a category from my wp RSS feed without success. I am on WP 3.4.
I have tried the following plugins:
My Category Excluder
Simply Exclude
Ultimate Category ExcluderNone of these work on this version of wordpress. I have also tried to edit the functions.php with:
<?php
function my_rss_filter($query)
{
if ($query->is_feed)
{
$query->set('cat','-1652');
}
return $query;
}add_filter('pre_get_posts','my_rss_filter');
?>
This also does not work. Any advice?
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
We cannot help your here at WordPress.com. You are posting to the wrong support forum and must post to http://wordpress.org/support/ instead.
- The topic ‘Excluding Category From WordPress RSS feed’ is closed to new replies.