How to exclude a category from your blog's feed

July 27, 2009

Often you'll want to exclude a particular category from your blog's RSS feed - whether it's an archive of your Twitter posts, or a category you're using for some kind of housekeeping. It's easy to do - just edit the category number in this code, and add it to your theme's functions.php file. function feed_the_cat($query) { if ($query->is_feed) { $query->set('cat','-1'); //change... Read more

A feast of (RSS) feeds

May 2, 2009

WordPress doesn't just publish the all-posts feed: in fact, it automatically publishes feeds to just about everything on your blog. Below are a few examples; I've included both the URL and the code to automatically generate the relevent link; after all, the feed's no use if your readers can't find it. URLs given assume you've set up pretty permalinks in Settings > Reading. Edit the bits in... Read more

What's the difference between WordPress categories and tags?

April 5, 2009

Confession time: I have made supreme messes with categories in the past. One blog had, at its worst, 83 categories - of which more than a dozen only had one post in them. Another went to the opposite extreme, and had one single category called "Stuff". Again, hardly helpful. Adding the possibility of tags as well just made this worse: is "stuff" a category or a tag? Any blogger is free to... Read more