How to make RSS summary feeds show 300 characters not just 50 (2 posts)

  1. Dgold
    Posted 7 years ago #

    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?

  2. Ozh
    Posted 7 years ago #


    Plugin Name: 300
    Plugin URI: http://planetozh.com/
    Description: excerpt = 300
    Author: Ozh
    Author URI: http://planetozh.com/
    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.

Topic Closed

This topic has been closed to new replies.

About this Topic