WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I’m trying to shorten the content of my RSS feed. Right now it displays way, way too much for each entry and I’ve tried to select the “Excerpt” in the Syndications setting in my option panel but it hasn’t done anything.

I’ve tried different approaches but little has it helped.

Is there a simple way (possible add_filter) where I can set the RSS feed content length to, say, 200?

- Mestika

share|improve this question
up vote 0 down vote accepted

I usualy make a RSS feed in my template. Just copy the RSS feed you have in the wp-include/feed-rss2.php
Step two is registering it instead of the original:

// override feeds
function own_rss( $for_comments ) {
    //it is in my theme/feed/rss2.php
    $rss_template = get_stylesheet_directory() . '/feed/rss2.php';
    if( file_exists( $rss_template ) ) {
        load_template( $rss_template );
    } else {
        do_feed_rss2( $for_comments ); // Call default function
remove_all_actions( 'do_feed_rss2' );
add_action( 'do_feed_rss2', 'own_rss', 10, 1 );

Step three is adjusting the your own RSS to your needs.

also look at this: http://codex.wordpress.org/Customizing_Feeds

share|improve this answer

I get it to work - it was simply because my Excerpt length wasn't correct and because I'm using my own "shoren" function and not the excerpt on my blog. Now it works fine..

share|improve this answer

Your Answer


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.