How to: List of scheduled posts
category: Snippets | Tags: development, how to.
Just a variation of the wordpress loop for this snippet. Pretty easy to implement. Just paste the following code anywhere in your template, where you want the list to be diplayed.
<?php
$my_query = new WP_Query('post_status=future&order=DESC&showposts=5');
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;
}
?>
By changing this number “showposts=5″ you control how many posts you want to display.
Leave a Reply
Read more articles...
BlogBuzzer
Blog Buzzer is a FREE easy to use tool that helps authors of blogs get their work noticed. Most blog entries are found by ot… read more
Geeks Are In
GeeksAre.In is a blog/magazine where i share with the world and my friends anything geeky and interesting i find online along with my thoughts.
techWALL
The best tech and technology news, developments and trends. Coverage includes hardware, software, internet and many more of the world of tech!
R.fm – The Finest Blend of Club Culture
R.fm is a gallery website by Gustav Bagge. The dark color scheme looks very stylish and surely adds something more to the overall picture. It’s a multicolumn theme that varies from two to four columns (2 for the post page, 4 for the home page).


Share on Facebook
Share on twitter
Subscribe to our RSS
