WordPress.org

Ready to get started?Download WordPress

Forums

RSS feed is supposed to show "summary" but instead shows much more... why? (9 posts)

  1. WPChina
    Member
    Posted 4 years ago #

    I just realized this problem on WordPress, and I'm unsure how long it has existed:

    I set the "Summary" to show on the RSS feed on the blog and in my posts I also use the "More" to create a separation in each post. I am really certain that a long time ago, the RSS feed would only show the content in each post up until the "More", and nothing more. However, now I see that each post has much more content past each "More" and I need to not provide that in each RSS feed :(

    1) Am I crazy and was this working the way I thought it should a year or so ago?

    2) Is there an immediate way to make sure only the Posts content up until the "More" is seen inside each RSS feed that is set to only show "Summary"? Can I add details to the functions.php?

    I searched online and there are some plugins and tweaks but they do not seem to answer this specific problem of limiting the amount of content shown within the RSS feed... did I miss something?

    Tks for ur help!

  2. WPChina
    Member
    Posted 4 years ago #

    Sorry, anybody know how to fix this?

  3. henkholland
    Member
    Posted 4 years ago #

    Hi,

    I checked my site and this one:'<div class="subscribe">"> RSS</div>' does produce excerpts when this is checked through Admin/reading.

    I also have this one: '<div class="subscribe">"> RSS</div>'

    note the "2" and that one does not do excerpts.

    I remember doing the 'rss2_url' after my RSS got stuck, but now they both work (differently).

  4. WPChina
    Member
    Posted 4 years ago #

    Are you saying yours works fine? My meaning is that myblog.com/feed/ shows much more than the typical first sentence I want to show people... is there any way to limit this so not so much of the Post content is available on the feed?

  5. henkholland
    Member
    Posted 4 years ago #

    Sorry, my post was not clear.
    <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Live feed met RSS'); ?>">
    This gives me a feed with (about) 50 words, ignoring the Read More that comes earlier.

    Check it out: http://www.enduro.nl/feed/

    This one <div class="subscribe"><a href="<?php bloginfo('rss_url'); ?>">&nbsp;RSS</a></div> is in my footer and also gives excerpts of 50 words but respects an announcement/sticky that I have on and gives that as first item.
    See here: http://www.enduro.nl/feed/rss/

    I am on WP 2.7.4

  6. balbert
    Member
    Posted 4 years ago #

    I'm having the same issue. Is there a time limit when changes are made to the feed? Like does it generate the rss on request or is something cached?

  7. WPChina
    Member
    Posted 4 years ago #

    @henkholland: Ok I understand now. However this problem is not exactly the same as I am having, though it may be related.

    I am surprised that there is no plugin for this and that not so many other people need this solved. I looked for plugins but can not find one for this -- am I missing it?

  8. WPChina
    Member
    Posted 4 years ago #

    Sorry to bump but this is a pressing issue and I'm sure there is a solution.

    I tried adding this to my functions.php but it is not working. i am not a programmer but I tried looking at things and tried putting things together. Any idea how to make this work?

    function myFilterShortenRSS($query) {
        if ($query->the_content_rss) {
            $query->set('','','10');
        }
    return $query;
    }
    add_filter('pre_get_posts','myFilterShortenRSS');
  9. WPChina
    Member
    Posted 4 years ago #

    Sorry, anybody know how to tweak this?

Topic Closed

This topic has been closed to new replies.

About this Topic