WordPress – How to List Your Upcoming Posts

If you want to display your schedule posts in a list which can often help readers to give them heads up about what you’re going to publish in upcoming days.

This can also help you to get new visitors and some more RSS subscribers. It’s not very hard to implement this functionality as it seems.

You just need to simply paste this code where you’d like your future posts to be displayed.

<?php query_posts('showposts=10&post_status=future'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<p class=""><b><?php the_title(); ?></b>
<?php edit_post_link('e',' (',')'); ?>

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

<?php endwhile; else: ?>

No future events scheduled.

<?php endif; ?>

Leave a Reply

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