Created
October 11, 2011 15:06
-
-
Save billerickson/1278344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item> | |
<title><?php the_title_rss() ?></title> | |
<link><?php the_permalink_rss() ?></link> | |
<comments><?php comments_link_feed(); ?></comments> | |
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> | |
<dc:creator><?php the_author() ?></dc:creator> | |
<?php the_category_rss('rss2') ?> | |
<guid isPermaLink="false"><?php the_guid(); ?></guid> | |
<?php if (get_option('rss_use_excerpt')) : ?> | |
<description><![CDATA[<?php the_post_thumbnail( 'feed-four-story' ); ?>]]> <![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_post_thumbnail( 'feed-four-story' ); ?>]]> <![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded> | |
<?php else : ?> | |
<content:encoded><![CDATA[<?php the_post_thumbnail( 'feed-four-story' ); ?>]]> <![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> | |
<?php endif; ?> | |
<?php endif; ?> | |
<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 rss_enclosure(); ?> | |
<?php do_action('rss2_item'); ?> | |
</item> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment