Support » Plugins » How to make RSS summary feeds show 300 characters not just 50

  • Dgold


    OK, I almost figured out how to do this. But it is a hack in the core files. Anyone know how to turn this into a plugin? Or is there already a plugin that handles this? RSS Experts, help!!

    Background: I want my feed to show 120 posts. I know some people think it’s too much but I want ALL my podcasts to be in my feed, so that iTunes will have the archive of all episodes when a new listener discovers it.

    I use Feedburner. After a while Feedburner decided to say my feed was too large, over 512k. So I had to shorten the feed, without limiting the # of posts (I need 120+ to fit all my podcast episodes). So I had to change from Full Feed to Summary Feeds (under WP Admin > Reading > Options). I don’t like the Summary because it is too short of an excerpt, only 50 characters showing.

    To use RSS2 Summary feed from WP, but have it show 300 characters (several sentences) instead of just 50 letters.

    My Hack: Go into wp-includes/feed-rss2.php

    Find the line:

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

    Change it to:

    <description><![CDATA[ <?php the_content_rss('Read ON', FALSE, '', 300); ?>]]></description>

    How do I make this a plugin or some way for the hack to remain, even after I upgrade to the next version of WP?

Viewing 1 replies (of 1 total)
  • Ozh



    Plugin Name: 300
    Plugin URI:
    Description: excerpt = 300
    Author: Ozh
    Author URI:
    add_filter('the_excerpt_rss', 'iwant300words');
    function iwant300words() {
    	return the_content_rss('Read ON', FALSE, '', 300);

    This said, I think you don’t get what RSS are for, as I have already answered to your comment on my blog.

Viewing 1 replies (of 1 total)
  • The topic ‘How to make RSS summary feeds show 300 characters not just 50’ is closed to new replies.