4 Ways To Exclude Categories From Your WordPress RSS Feed

There’s at least 4 different ways you can exclude all posts assigned to one or more categories from being included in your RSS feed.

  • You can add some PHP code to your child themes functions file or
  • You can install a plugin

PHP Code

Add this to your child themes functions.php file. Make sure you find your category i.d and replace the 007 category i.d number.

Add more category i.d’s separated by a comma.

Or you could use this snippet instead

Plugins

Simple Exclude – This plugin enables you to exclude categories from your RSS feed and from displaying in other areas using conditional tags.

Exclude from:

  • Archives
  • Feeds
  • Front/Home
  • Searches
  • Widget: Categories
  • Widget: Tag Cloud

This plugin will also enable you to exclude single posts from your RSS feed.

Stealth Publish – This plugin excludes posts from displaying on the front page and RSS feed.

You could also change your feed url and exclude categories from the new feed url using PHP code as well as editing your feed in Feedburner.

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.