Fixing RSS Feed in WordPress 2.0.1
WordPress users using “index.php” as part of their permalink structure will find upon upgrading to WordPress 2.0.1 that their main feed displays comments instead of posts.
Here is the temporary fix posted on the WordPress Trac by user joshkidd (thanks!):
Make a small change to the classes.php file.
This can be found in the wp-includes folder. Find this line, which is located about 75% to 80% of the way down the file (line 1324):
// Comments
$comments_rewrite = $this->generate_rewrite_rules($this->root . $this->comments_base, true, true, true);
Change this line to the following:
// Comments
$comments_rewrite = $this->generate_rewrite_rules($this->root . $this->comments_base, true, true, true, false);
All that is being added is the “false” at the end of the parameter line.
Save the file.
Create a test static page.
Just name a page “test”. Save it. This flushes out the rewrite rules. The main RSS feed “…/index.php/feed/” should now be displaying correctly.
I would expect an official fix from WordPress sometime soon.
About the Author
Paul Flyer loves to research the web and find resources and tools for building, maintaining and promoting websites. Based in Saint Louis, MO, he works in management and spends his free time sharpening his web development and copy writing skills. Feel free to contact Paul with any questions, comments or ideas. He is also available to help you with your own website.
Profile cancel
Popular Articles
- Removing Line Breaks/Space Before/After H1 tags
- Free Download Manager for Firefox
- Web Development and Design Tool Recommendations
- .htaccess and WordPress
- Removing Image Borders with CSS
- What does it mean to be pinged
- Graphic Design Tool Resources
- Free Blog Software Recommendation
- How to use cPanel to backup your website











[...] I found out today that my rss feed wasn’t working properly. Looks like it was cause by a bug in WordPress version 2.01. This page explains how to fix it (until there is a new WP version). Website [...]