Disable Categories from WP RSS

To continue this process you must know the ID of category(find Category ID)
once you find the category Id which you want to exclude from your RSS follow steps
1. Open Function.php which you can find in your theme directory. If your theme doesn’t have , create one
2. Create filter like the follwing Way

function myFilter($query) {
if ($query->is_feed) {
//Don’t forget to change the category ID =^o^=(in this 5 is the ID.) Keep ‘-‘ before the cat ID
return $query;

This filter excludes category from feed
3. Apply this filter to your Theme using ‘add_filter’ function

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: