<link><?php bloginfo_rss('url'); ?> </link> <description><?php bloginfo_rss('description'); ?> </description> <?php while (have_posts()) { the_post(); ?> <?php $instant_article_post = new Instant_Articles_Post(get_post(get_the_id())); // If we’re OK with a limited post set: Do not include posts with empty content -- FB will complain. if (defined('INSTANT_ARTICLES_LIMIT_POSTS') && INSTANT_ARTICLES_LIMIT_POSTS && !strlen(trim($instant_article_post->get_the_content()))) { continue; } // Posts are sorted by modification time, so our first accepted post should be the one last modified. if (is_null($last_modified)) { $last_modified = $instant_article_post->get_the_moddate_iso(); } ?> <item> <title><?php echo esc_html($instant_article_post->get_the_title()); ?> </title> <link><?php echo esc_url($instant_article_post->get_canonical_url()); ?>