Categories

open all | close all

How do Show Future Posts in WordPress

Jul

20

2010

I recently came through a blog which shown its future posts on a page , which can help their visitors to know about the upcoming events. Its like a nice feature, is there a plugin where in we can show the scheduled posts?

In: Blogging Questions Asked By: [417 Blue Star Level]
Answer #1


This is post stamp which is available in your wp admin
panel on the sidebar while writing the post..

http://www.maxblogpress.com/wp-content/uploads/2007/11/time_stamp.jpg

GD Star Rating
loading...
Answers Answered By: rockstar [ Grey Star Level]
Answer #2


@Rockstar he has asked for displaying all the future posts on the wordpress blog to your visitors. Its possible using this code -
< ?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; ?>
# < ?php the_title(); ?>

< ?php endwhile;
}
?>

GD Star Rating
loading...
Answers Answered By: Amit Bhawani [ Grey Star Level]
Answer #3

:? Will be careful from next time before answering anything!

GD Star Rating
loading...
Answers Answered By: rockstar [ Grey Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Star Points Scale

Earn points for Asking and Answering Questions!

Grey Sta Levelr [1 - 25 Grey Star Level]
Green Star Level [26 - 50 Green Star Level]
Blue Star Level [51 - 500 Blue Star Level]
Orange Star Level [501 - 5000 Orange Star Level]
Red Star Level [5001 - 25000 Red Star Level]
Black Star Level [25001+ Black Star Level]