WordPress Full Text RSS Feed Fix for Firefox and Safari

Should I choose to, I would like to read your blog entirely within my RSS reader. WordPress seems to have a funny quirk where in Firefox or Safari environments, each item in the feed gets cut off abruptly shortly after getting started.

Troy Chaplin helped me find a link a few months ago, explaining that if I comment out one line in /wp-includes/feed-rss2.php, it’s all fixed!

Here is a quick excerpt:

1. Open file.

<wordpress-root>/wp-includes/feed-rss2.php

2. Find following lines

<?php if (get_option('rss_use_excerpt')) : ?>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>

3. Now comment out last line. We can remove it too but commenting is safe option. So it will look like…

<?php if (get_option('rss_use_excerpt')) : ?>
          <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>
          <!- -         <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
         - ->

4. Save file. That’s it.

That’s all, just wanted to make a note for myself – thanks Troy!

2 Comments

  1. Keep in mind that this is a quick fix only, and you should continue to seek out a better solution that does not involve editing core WordPress files. I would much rather live with the problem than edit core files in any piece of software.

    By editing these files you create more work when it comes time to upgrade, as well as maintaining some sort of list to keep track of the core edits and hacks.

    • When I was researching to re-find this solution (lost the link) – I found many tickets/topics open on the WordPress forums – where people kept being told they were crazy, or that WordPress was perfectly fine and that there no problems – which I found frustrating. It is a very real defect, and not one that several of my sites/clients are able to live with – so we do this core hack. I’m going to pop over to the WordPress forums and see if I can’t get a stronger answer than what has been provided in the past 🙂

Submit a Comment

Your email address will not be published. Required fields are marked *