Paulund
2012-01-22 #wordpress

How To Display Future Posts In Wordpress

It is recommended that you don't over load your readers by posting all the time, so if you write more than one post a day you should try to use the Wordpress schedule functionality. This way you can write as much as you want and queue up all your posts for the future. Do you want to keep your readers informed on what they can expect to see in the future. You can actually display all your scheduled posts on a page. All you have to do is add the following PHP snippet to your page to display all your future posts.


<ul>
<?php
$my_query = new WP_Query('post_status=future&order=DESC&showposts=10');
if ($my_query->have_posts()) {
    while ($my_query->have_posts()) : $my_query->the_post();

        $do_not_duplicate = $post->ID; ?>

        <li><?php the_title(); ?></li>

    <?php endwhile;
}
?>
</ul>