wordpress multiple/minus category feeds

Okay, figured out how to create feeds in WordPress 2.7 that will exclude a certain category.  I really wish this stuff were better documented.  As in, I shouldn’t have to read any docs or google for examples, but immediately wake up one day with this knowledge.

Anyway, here’s a case of my feed for all posts *minus* the new Religion one I’m starting to add stuff to: http://wonkabar.org/feed/?cat=-5

Also, if you want to do more than one, looks like they just need to be comma separated:

http://wonkabar.org/feed/?cat=-5,-1

Just drop the minus sign if you actually want to include them instead of exclude.  As for figuring out what the IDs of your categories are … well, have fun.  I just guessed.

About these ads

1 Comment

Filed under Computers

One response to “wordpress multiple/minus category feeds

  1. Ace – you’re a star. The first bit I knew (the ?cat=-5 ) but I couldn’t work out the right syntax for removing more that one cat from the feed. Thank you Steve!

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s