- <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
- <?php if ( strlen( $post->post_content ) > 0 ) : ?>
- <content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
+ <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
+ <?php $content = get_the_content_feed('rss2'); ?>
+ <?php if ( strlen( $content ) > 0 ) : ?>
+ <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>