stovila
Member
Posted 4 years ago #
Hi. I want to limit the RSS from my site, so what is downloaded to the RSS read only all the post BEFORE the read-more tag kicked in.
I changed the WP setting into Summary, it's only excerpting the post. And Full-text, is really the full thing.
Is there a way to do it?
mystyman
Member
Posted 4 years ago #
This issue appearently has some history, see
http://trac.wordpress.org/ticket/2582 and
http://trac.wordpress.org/ticket/6680
I have a tiny patch which should allow the feed (rss2 and atom) to honor <!--more--> when admin/settings/reading are set to full text.
--- wp-includes/post-template.php (revision 7919)
+++ wp-includes/post-template.php (working copy)
@@ -113,6 +113,7 @@
if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) )
$stripteaser = 1;
$teaser = $content[0];
+ if (is_feed()) $more = 0;
if ( ($more) && ($stripteaser) )
$teaser = '';
$output .= $teaser;