Guest

Untitled

By: a guest on Sep 7th, 2011  |  syntax: PHP  |  size: 1.93 KB  |  hits: 91  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1.         <rss version="2.0"
  2.                 xmlns:content="http://purl.org/rss/1.0/modules/content/"
  3.                 xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  4.                 xmlns:dc="http://purl.org/dc/elements/1.1/"
  5.                 xmlns:atom="http://www.w3.org/2005/Atom"
  6.                 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  7.                 xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  8.                 <?php do_action('rss2_ns'); ?>
  9.         >
  10.  
  11.         <channel>
  12.                 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
  13.                 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
  14.                 <link><?php bloginfo_rss('url') ?></link>
  15.                 <description><?php bloginfo_rss("description") ?></description>
  16.                 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
  17.                 <language><?php echo get_option('rss_language'); ?></language>
  18.                 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
  19.                 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
  20.                 <?php do_action('rss2_head'); ?>
  21.                 <?php while( have_posts()) : the_post(); ?>
  22.                 <item>
  23.                         <title><?php the_title_rss() ?></title>
  24.                         <link><?php the_permalink_rss() ?></link>
  25.                         <comments><?php comments_link_feed(); ?></comments>
  26.                         <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
  27.                         <dc:creator><?php the_author() ?></dc:creator>
  28.                         <?php the_category_rss('rss2') ?>
  29.  
  30.                         <guid isPermaLink="false"><?php the_guid(); ?></guid>
  31.                         <description><![CDATA[<?php the_content() ?>]]></description>
  32.                         <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
  33.                         <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
  34.                         <slash:comments><?php echo get_comments_number(); ?></slash:comments>
  35.         <?php rss_enclosure(); ?>
  36.                 <?php do_action('rss2_item'); ?>
  37.                 </item>
  38.                 <?php endwhile; ?>
  39.         </channel>