Support » Fixing WordPress » How to get full text in RSS feed description element

  • Resolved onlyconnect

    (@onlyconnect)


    I’ve seen several posts about this but haven’t nailed the definitive answer.

    For historical reasons, many of my subscribers use a feed url that delivers the old rss version=”0.92″ feed. This is also what you get from:

    http://www.itwriting.com/blog/feed/rss

    or

    http://www.itwriting.com/blog/wp-rss.php

    Until recently, this used to have the full text in the description field. It no longer does; and I can’t figure out why; it might have been switching to pretty permalinks or it might have been the last WordPress update that changed it.

    How can I get the full text back in the description element? I know there is a plug-in; but is that really necessary?

    Tim

Viewing 1 replies (of 1 total)
  • onlyconnect

    (@onlyconnect)

    After a fair amount of effort, I’ve worked out how to do this by amending the source. At your own risk etc etc, but if you edit the file:

    wp-includes/feed-rss.php

    find this line:

    <description><?php the_content_rss(”, 0, ”, get_option(‘rss_excerpt_length’)) ?></description>

    and change it to this:

    <description><?php the_content_rss(”, 0, ”, get_option(‘rss_excerpt_length’),1) ?></description>

    then you will probably get full HTML RSS 0.92 feeds again – if you selected full text feeds in the first place.

    I can’t see any way of getting this *without* making the change (though I could be wrong, I guess plugins can do anything), so it seems to be a change in a recent version.

    Tim

Viewing 1 replies (of 1 total)
  • The topic ‘How to get full text in RSS feed description element’ is closed to new replies.