Include Future Posts in RSS Feed

Posts scheduled for the future do not appear in your RSS feed. If you’d like future posts to appear in your RSS feed, add the following to your theme’s functions.php file.

Code Snippet:

<?php
/* Include published and future posts in rss feed. */
function FuturePostsFeed($query) {
    if ($query->is_feed) {
         $query->set('post_status','publish,future');
    }
return $query;
}
add_filter('pre_get_posts','FuturePostsFeed');
?>

Posted in Posts