In this code snippet we will share how to display the future posts in WordPress. If you want to display top 10 future or upcoming posts, You need to add the following code whare you want to display 10 future posts.

You might also like…

Code Snippet:

The following code will display 10 future posts:

<p>Future Posts</p>
<?php query_posts('showposts=10&post_status=future'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<p><?php the_title(); ?> <?php the_time('j. F Y'); ?></p>

<?php endwhile; else: ?><p>No future posts.</p><?php endif; ?>

Hope this is useful for you 🙂

If you feel this snippet useful? Any questions? Do let me know via comments.

How to Display the Future Posts in WordPress
5 (100%) 3 votes

(Visited 42 times, 1 visits today)

Leave a Comment

Your email address will not be published. Required fields are marked *