<?php
else : ?>
<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>
<?php
else : ?>
<content:encoded><![CDATA[<?php
the_excerpt_rss(); ?>]]></content:encoded>
<?php
endif; ?>
<?php
endif; ?>
<?php
if ( get_comments_number() ||
comments_open() ) : ?>
<wfw:commentRss><?php
echo esc_url( get_post_comments_feed_link( null, 'rss2'
) ); ?></wfw:commentRss>
<slash:comments><?php
echo get_comments_number(); ?></slash:comments>
<?php
endif; ?>
<?php
rss_enclosure(); ?>
<?php
/**
* Fires at the end of each RSS2 feed item.
*
* @since 2.0.0
*/