Sat 29 Jan. 2005

WordPress Feed Hacks

A cool tip from Blogging Pro on WordPress Category Feeds.

Locating the URL for your category feeds is not always the easiest thing to do with WordPress. TangognaT points out that it’s as simple as adding a ?cat=# of category to the base url for any wordpress feed. So if you wanted to display the RSS feed for category 3, the feed URL would be http://www.yourwebsiteurl.com/wp-rss2.php?cat=3. You can also use wp-atom.php?cat=3.

In order to subscribe to a specific category of someone else’s WP blog, you’ll have to get the right id which is assigned sequentially in the order they’re created - so with a bit of fiddling you can find it.

In the comments, however, there’s another tip to use the category by name:

http://yoursite.com/?category_name=yourcategory&feed=rss2

(or /feed/atom)

example:

sennosen.blogsome.com/?category_name=Weblogs&feed=rss2

If the category contains a space you’ll need to replace it with %20

sennosen.blogsome.com/?category_name=Mac%20Stuff&feed=rss2

Works like a charm.

I’ve gone and replaced links to my feeds (though the’re still available, of course) to go with FeedBurner. Besides the tracking feaure, I’ve also opted to splice my de.licio.us links into the feed.

Comments »

The URI to TrackBack this entry is: http://sennosen.blogsome.com/2005/01/29/wordpress-feed-hacks/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>