Excluding Categories from WordPress Feeds

This post is obsolete.

I recently wanted to set up a new rss feed that would exclude posts in a couple of categories but include all others. I found these procedures but they didn’t work for me. My feed would only exclude the last category specified. But I eventually found a syntax that works. Here’s the procedure I used.

First I got the category ID numbers for the categories I wanted to exclude. In my case I want to exclude the “Quick Bits” and “Likes & Gripes” categories. The categories are listed in WordPress console on the Manage -> Categories tab. The number I want is in the first column.


The “Likes & Gripes” ID is 229, as shown in the picture to the left. The “Quick Bits” ID is 59. Now, the URL for my full feed is http://www.osquest.com/index.php?feed=rss2. So, based on the procedures that I found I should be able to use http://www.osquest.com/index.php?feed=rss2&cat=-59&cat=-229 But like I said, that wasn’t working for me. Only the last category would be excluded, even if I changed the order or added new category.

I was able to tweak the syntax a bit and I found the following syntax works: http://www.osquest.com/index.php?feed=rss2&cat=-59,-229. This gave me a feed that properly excluded the “Quick Bits” and Likes & “Dislikes” categories.

I use FeedBurner for my feeds and also wanted to have this feed managed through FeedBurner. Configuring this in FeedBurner was as simple as using the working URL as the original feed address.

I’m not sure why the original syntax didn’t work. I found other articles with the same syntax. The articles were about a year old so maybe things are different with the current version. Or maybe there’s some plug-in that makes my WordPress install unique.

If you want to subscribe to this site, either through an rss feed reader or by email you can subscribe to a feed of all content, my newly created articles only feed or any of several other feeds. They’re all listed on my About page.