MOin on Jul 12, 2010 | Tips & Tutorials

How to: List Upcoming/Scheduled Posts in WordPress

Delicious

If you Schedule posts on daily basis and don’t let your post que go empty you may want to display a list of pending or upcoming posts. This way you can gather interest of your visitors and they possibly will subscribe to your blog.

Simply put the following code anywhere in your WordPress blog theme file to show list of upcoming posts.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Upcomming Posts:
 
<?php query_posts('showposts=10&post_status=future'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
 
<?php the_title(); ?> <?php edit_post_link('e',' (',')'); ?>
 
<span><?php the_time('j. F Y'); ?></span>
 
<?php endwhile; else: ?>
 
No future events scheduled.
 
<?php endif; ?>
Stumble it Digg it Vote on Reddit Add to delicious
Tweet it Share on facebook Add to Technorati Float it

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

One Response to “How to: List Upcoming/Scheduled Posts in WordPress”

  1. [...] This post was mentioned on Twitter by WP Skinner, WP Skinner. WP Skinner said: How to Customize WordPress Dashboard By Add/Remove Widgets http://bit.ly/cLROES [...]

Leave a Reply


You can submit your free wordpress theme in WP skinner user submitted themes gallery to get Downloads and popularity. Its Free! ​ ​ Submit your Theme

View All >>

About | Contact | Submit your Theme
© 2010 WP Skinner | Powered by WordPress Top ^