X

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.

<?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');
?>

Comments  Leave a Reply

  1. Code seems to be missing?

    1. Just updated the post!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!