WordPress.org

Ready to get started?Download WordPress

Forums

Bug in wp-rss2.php? (2 posts)

  1. tekoteko
    Member
    Posted 7 years ago #

    Lines 40-43:

    code<?php if (get_settings('rss_use_excerpt')) : ?>
    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>/code

    It's the exact same thing. When I changed to the following, it seems to be working:

    code<description><![CDATA[<?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?>]]></description>code

  2. tekoteko
    Member
    Posted 7 years ago #

    This markup is annoying without a clear explanation, and plus without "Preview post". Repost, hope the code will be clear:

    Lines 40-43:

    <?php if (get_settings('rss_use_excerpt')) : ?>
    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>

    It's the exact same thing. When I changed to the following, it seems to be working:

    <description><![CDATA[<?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?>]]></description>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags