TyskJohan on “RSS feed for each category”
Tuesday, December 13th, 2005I just posted a little snippet to the WordPress support database which enables per-category RSS feed information in the category archives, so that you will get a subscription only to posts for the category whose archives you are viewing.
It’s an ugly hack and should probably be made into a plugin that overloads the wordpress method instead…
TyskJohan on “RSS feed for each category”:
OK here is what I added to the header template, if anyone’s interested.
< ?php
if (is_category()) {
$fullrss = get_category_rss_link(0,intval( get_query_var(cat)));
} else {
$full_rss = get_bloginfo_rss(rss2_url);
};
$rss2_url = $fullrss;
$rss_url = $fullrss.'rss/';
$atom_url = $fullrss.'atom/';
?>
Categories
- Computers & co (43)
- Deutsch (15)
- English (98)
- Français (13)
- Higher Education (33)
- EHEA (15)
- Greifswald (7)
- VAE (4)
- Jobs (12)
- Language (23)
- My Thesis (3)
- Norsk (11)
- Photos (38)
- Politics (27)
- Soda (1)
- Svenska (25)
- Travel (61)
- Buenos Aires (13)
- Hong Kong (4)
- Perth (2)
- South Africa (4)
- Uncategorized (6)