Code To Display Scheduled Posts In WordPress Blog

Posted by


This is the code to display scheduled posts in wordpress blog. You can add it where you want to display the scheduled posts:

$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;

That’ s it!


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.