7 |
7 |
8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); |
8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); |
9 $more = 1; |
9 $more = 1; |
10 |
10 |
11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> |
11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> |
12 <?php the_generator( 'comment' ); ?> |
|
13 <rss version="0.92"> |
12 <rss version="0.92"> |
14 <channel> |
13 <channel> |
15 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> |
14 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> |
16 <link><?php bloginfo_rss('url') ?></link> |
15 <link><?php bloginfo_rss('url') ?></link> |
17 <description><?php bloginfo_rss('description') ?></description> |
16 <description><?php bloginfo_rss('description') ?></description> |
18 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> |
17 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> |
19 <docs>http://backend.userland.com/rss092</docs> |
18 <docs>http://backend.userland.com/rss092</docs> |
20 <language><?php echo get_option('rss_language'); ?></language> |
19 <language><?php bloginfo_rss( 'language' ); ?></language> |
21 <?php do_action('rss_head'); ?> |
20 <?php do_action('rss_head'); ?> |
22 |
21 |
23 <?php while (have_posts()) : the_post(); ?> |
22 <?php while (have_posts()) : the_post(); ?> |
24 <item> |
23 <item> |
25 <title><?php the_title_rss() ?></title> |
24 <title><?php the_title_rss() ?></title> |