How to exclude categories from RSS feed

rss How to exclude categories from RSS feedSometime we want to exclude some categories from RSS feeds, for instance, when we use Wordpress as CMS, or simply when we use some categories for admin purposes and so on. Don’t worry, it’s so easy to exclude specific category from your Wordpress feeds.

1. Let’s say your feed URL is…

http://yourdomain.com/feed

and find it in header.php in your theme.

2. If you want to exclude a category whose ID is let’s say “5″, then you can do….

http://yourdomain.com/feed?cat=-5

3. If you want to exclude another category whose ID is “10″

http://yourdomain.com/feed?cat=-5&cat=-10

That’s it! Really easy isn’t it?

Author: Takashi Irie

Takashi Irie is an experienced commercial web designer and Wordpress expert based in London. He is very passionate about web design, typography, grid systems as well as Wordpress.

Enjoyed this post? Share it!

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • Twitter
  • email
  • RSS

Leave a Comment