Support » Plugins and Hacks » <!more> In Feed

  • Before this version (2.5) of WP, it used to be that even when full feeds were selected, they would be cut off by the <!more> tag.

    With the latest version (2.5), this is no longer the case. I do not want full feed nor do I want summary that cuts it off before the <!more> tag.

    I would like an option to make the feed cut off at the <!more> tag instead. Could not find any plugin to do this. Any other recommendation?

Viewing 15 replies - 1 through 15 (of 19 total)
  • Edit the feed-rss2.php file. At the top you’ll find this:
    $more = 1;

    Change it to zero to change the effect of the more.

    You may want to make the same change to the other feed files, like feed-atom.php and feed-rss.php.

    Thanks Otta42.

    I have made changes to the following files:

    feed-atom.php
    feed-rdf.php
    feed-rss.php
    feed-rss2.php

    which were in the /wp-includes/ directory.

    Will report back in a few hours to see if it works 😀

    Just to confirm, after I make the changes, I should use Summary for text feeds right? Or should I be using Full?

    I have changed

    $more = 1;

    to

    $more = 0;

    for these files:

    /wp-includes/feed-atom.php
    /wp-includes/feed-rdf.php
    /wp-includes/feed-rss.php
    /wp-includes/feed-rss2.php

    I then went to Settings > Reading and changed For each article in a feed, show to Full text.

    I wrote a new article with the more tag, published it and went to look at the feed in my feed reader. It showed the full feed.

    So I went back to Settings > Reading and changed For each article in a feed, show to Summary.

    I wrote another new article which also has the more tag and published it. Went to the take a look at my feed reader and it only showed the first few sentences. That is, it cut off way before the <!more> tag.

    What am I doing wrong and how can I overcome this?

    I want the article to cut off at the <!more> tag for those that have that and for articles without the <!more> tag, to show in full.

    Any suggestions?

    You should be using full feeds. And the $more thing will take effect instantly, you don’t need to wait “a few hours”.

    If you’re using feedburner redirection, then disable it temporarily so you can see the effect for real.

    I am using Full feeds and deactivated my FeedBurner FeedSmith plugin which was the only feedburner redirection plugin I had.

    However, it still does not work and I am not sure why. I tried calling the feed with varius URLs like

    http://example.com/?feed=rss
    http://example.com/?feed=rss2
    http://example.com/?feed=rdf
    http://example.com/?feed=atom
    http://example.com/feed/
    http://example.com/feed/rss/
    http://example.com/feed/rss2/
    http://example.com/feed/rdf/
    http://example.com/feed/atom/

    replace example.com with my site but it still shows the Full feed and does not cut it off.

    What could I be doing wrong?

    I’m having the same problems. I have FeedBurner set up as the main feed my readers use, so I don’t want to temporarily disable anything about it.

    When I just check the WordPress feed (example.com/feed/), I get the same problem.

    I edited the files as you suggested (I found them in the wp-includes folder), and I’m still not seeing it any different. Any other suggestions would be much appreciated as I really liked the <!more> separator in the feeds before 2.5. TIA

    Does my theme need a WP function call to make this work… IE some plugins/features only work by having wp_header and wp_footer calls in the theme files?

    Bump

    Yep! I would like an option to make the feed cut off at the <!more> tag too

    Please, help to cut the feed as it was in the 2.2 version

    I had the same problem with the change of behavior regarding the use of the <!–more–> tag by the feed generators. I wrote a small plugin that reverts the functionality back to what we have been used to. It requires no configuration.

    The plugin is called more-feed-excerpt. The name could be better, but, well, it does the job 🙂

    I have found the solution,

    WordPress Plugin : Better Feed

    What I want to know is why the heck was this functionality removed from wordpress? It was working fine, it provided exactly what the people using it needed, so why suddenly remove it?

    It is very frustrating to have to keep dealing with an API that appears to change randomly.

    @rawalex: I agree with you, but it seems there are lots of people who want to deliver full-text feeds, while splitting the posts at the “more” tag on the web.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘<!more> In Feed’ is closed to new replies.