Home / posts / Display future posts
  • How to Display future posts

    no thumbnail sorry: Display future posts

    Adding this code to your wordpress theme will display a listing of future posts to be published.

    ( click code to copy )

    wordpress snippet : PHP

    <div id="zukunft">
    	<div id="zukunft_header"><p>Future events</p></div>
    	<?php query_posts('showposts=10&post_status=future'); ?>
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    		<div >
    			<p class><b><?php the_title(); ?></b><?php edit_post_link('e',' (',')'); ?><br />
    			<span class="datetime"><?php the_time('j. F Y'); ?></span></p>
    	<?php endwhile; else: ?><p>No future events scheduled.</p><?php endif; ?>

    ( WordPress codex functions, hooks, in this snippet. )

    the_title, post_link, the_time, query, edit_post, have_posts, the_post, query_posts, wp,