A regular visitor asked us how he can exclude a category posts appearing in Feedburner feed. To exclude a category posts appearing in Feedburner, we can not tweak from Feedburner settings, we have to control the source : that is the WordPress blog feed.
Follow these instructions to exclude a category posts appearing in the Feed:
Write down the category ID you want to exclude from the feed. Open notepad, write the category name save as exclude a category (or something like that); otherwise it is difficult to remember.
To find the category you want to exclude, Go to Posts > Categories and hover your mouse over the category you want to exclude. You will see something like this in your lower pane of browser:
---

We have marked the category ID above.
Editing the functions.php file to exclude a category
We have to edit the file named functions.php of your theme file to exclude a category. You can use Notepad or Gedit (our choice) to edit :
myFilter function ($ query) {
if ($ query -> is_feed) {
$ Query -> set (‘cat’, ‘-358‘);
}
return $ query;
}
add_filter (‘pre_get_posts’, ‘myFilter’);
Obviously, you have to change the red text, which is our category ID in this example to exclude a category you want. Save the changes to the file. You can use comma to separate more categories to exclude.
Here’s what we’ve got for you which might like :
Additionally, performing a search on this website can help you. Also, we have YouTube Videos.
Take The Conversation Further ...
We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!
If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.
Contact Us