$content =
wxr_cdata( apply_filters( 'the_content_export',
$post->post_content
) );
/**
* Filters the post excerpt used for WXR exports.
*
* @since 2.6.0
*
* @param string $post_excerpt Excerpt for the current post.
*/
$excerpt =
wxr_cdata( apply_filters( 'the_excerpt_export',
$post->post_excerpt
) );
$is_sticky =
is_sticky( $post->ID
) ? 1 : 0;
?>
<item>
<title><?php
echo $title; ?></title>
<link><?php
the_permalink_rss(); ?></link>
<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
echo wxr_cdata( get_the_author_meta( 'login'
) ); ?></dc:creator>
<guid isPermaLink="false"><?php
the_guid(); ?></guid>
<description></description>
<content:encoded><?php
echo $content; ?></content:encoded>
<excerpt:encoded><?php
echo $excerpt; ?></excerpt:encoded>
<wp:post_id><?php
echo (int) $post->ID; ?></wp:post_id>
<wp:post_date>