How to Fix your WordPress Comment Feed Name
Many RSS feed aggregators (like Bloglines, for example) alphabetize the feed names that you’re subscribed to. If you set up WordPress and test your RSS feeds in such a news reader, you’ll notice that your main feed and your comments feed are probably not listed next to each other. To make it easier for your loyal readers to track what’s going on with your site, those feeds should be sorted alphabetically so that they clump together. Read on for a quick solution.
For our example, let’s say your blog is called “My Blog”. A subscriber to your feeds might see this in their news reader:
…
Comments for My Blog
…
Last Blog Before Mine
My Blog
Next Blog After Mine
…
We want “Comments for My Blog” and “My Blog” to show up next to each other in the list. To fix this, you’ll need to modify one of your core WordPress files. I’ve tested this change in WordPress 2.0.5, 2.0.7, and 2.0.9, but not in WordPress 2.1. As always, be careful when you modify one of the WordPress core files, and be ready to restore the original version of the file if you run into problems.
To rename your blog’s comment feed name, modify the file wp-commentsrss2.php (line 23 in my version) and change:
<title><?php if (is_single() || is_page() )
{ printf(__('Comments on: %s'), get_the_title_rss()); }
else
{ printf(__('Comments for %s'), get_bloginfo_rss("name")); }
?></title>
to:
<title><?php if (is_single() || is_page() )
{ printf(__('Comments on: %s'), get_the_title_rss()); }
else
{ printf(__('%s Comments'), get_bloginfo_rss("name")); }
?></title>
Coming back to our example, a subscriber to both your main RSS feed and your comments feed would now see them listed nicely right next to each other in the subscription list of their news reader:
…
Last Blog Before Mine
My Blog
My Blog Comments
Next Blog After Mine
…
Note that it may take a few days before the new feed name is reflected in news aggregators–I have found this to be the case with Bloglines, for example.
Update! This problem appears to have been fixed in WordPress 2.3.3.


April 29th, 2007 at 3:49 am
That has bugged me more than anything about the comment feed… thanks for the fix. (I backed up the file in case I goofed something up…)
April 29th, 2007 at 5:41 am
[…] I found a great tweak for the RSS comment feed that fixed something I find aggravating: when you subscribe to posts and comments, the WordPress comment feed isn’t listed next to the post, because the comment feed is named “Comments for” instead of “[Your blog]’s Comments.” […]
August 26th, 2007 at 4:06 am
[…] Symbolcraft Blog Archive … How to Fix your WordPress Comment Feed Name - Renames the WordPress comment feed so it falls alphabetically under your main feed. Bookmark to: […]