Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Feedburner won't read your feed if it's over 512k. Our podcast (http://herdingcode.com) has been around for 3 years now, and returning all items puts us way over that limit. We've had new listeners request that we include them all, though, and I'm wondering if that's easily possible.

I'm thinking I could hack around with feed-rss2.php and add some conditional logic that puts full details for the most recent 75 shows and truncated descriptions for all the older shows. Has someone already done this, or got some tips on how to set it up?

share|improve this question
    
did you ever solve this one? –  two7s_clash Aug 11 '11 at 23:56
    
I ended up creating a plugin that shows Full Text for recent posts and Summary for old posts: wordpress.org/extend/plugins/excerpt-old-posts –  Jon Galloway Jan 4 '12 at 2:44

1 Answer 1

up vote 2 down vote accepted

Dunno if you have images in your feed, but those could be sucking up a bit of space: Reducing image size in RSS only

Here are the basics for setting WP to use a custom feed template: http://www.456bereastreet.com/archive/201103/controlling_and_customising_rss_feeds_in_wordpress/

Here are some tips in authoring the template itself: http://digwp.com/2009/09/easy-custom-feeds-in-wordpress/

As for your looping, try something like this for your "full" 75 most recent posts (inside your RSS structure of course):

<?php
query_posts('showposts=75');
$ids = array();
while (have_posts()) : the_post();
$ids[] = get_the_ID();
the_title();
the_content();
endwhile;
?>

Once that’s done, get all the rest, with just truncated info:

<?php
query_posts(array('post__not_in' => $ids));
while (have_posts()) : the_post();
the_title();
the_excerpt();
endwhile;
?>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.