WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP 3.3 RC2 - RSS excerpt and content functions INOP (3 posts)

  1. Sean Caranna
    Member
    Posted 2 years ago #

    This logic, found in feed-rss2.php, is returning no results regardless of the state of "rss_use_excerpt".

    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    	<?php else : ?>
    		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    	<?php endif; ?>
    <?php endif; ?>

    see: http://www.allnineyards.com/?feed=rss2

    "the_content_feed" and "the_excerpt_rss" return nothing.

    If I modify feed-rss2.php to use "<?php the_content_rss() ?>" then the field is populated with the post's full text, but all internal links and image URLs are put in to footnotes with a "[1], [2}, [3], etc..." left in their original position.
    This is causing rss readers and syndication systems to display those footnote indicators and ignore the images or URLs. GIGO, I can't change that behavior because the "make_url_footnote" function has been deprecated.

  2. Jon Cave
    WordPress Dev
    Posted 2 years ago #

    The rss2 feed works okay for me in testing. Have you tried disabling plugins and trying again? The wp-recaptcha plugin messes with the_content_rss and the_excerpt_rss, for example.

  3. Sean Caranna
    Member
    Posted 2 years ago #

    I must have forgotten to refresh the feed when I tried disabling plugins before... Pingchecker plugin was the problem.

    Sorry for the bad report.

Topic Closed

This topic has been closed to new replies.

About this Topic