2 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
6 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
7 <!-- generator="wordpress/<?php echo $wp_version ?>" -->
10 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
11 <link><?php bloginfo_rss('url') ?></link>
12 <description><?php bloginfo_rss('description') ?></description>
13 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
14 <docs>http://backend.userland.com/rss092</docs>
15 <language><?php echo get_option('rss_language'); ?></language>
16 <?php do_action('rss_head'); ?>
18 <?php while (have_posts()) : the_post(); ?>
20 <title><?php the_title_rss() ?></title>
21 <?php if (get_option('rss_use_excerpt')) { ?>
22 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
23 <?php } else { // use content ?>
24 <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length')) ?></description>
26 <link><?php the_permalink_rss() ?></link>
27 <?php do_action('rss_item'); ?>