Created
August 19, 2014 10:45
-
-
Save Barrytron1983/a206a460ba4e2699996a to your computer and use it in GitHub Desktop.
Add listing of future-scheduled Worpdress posts, with fallback text for none available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="yourdivid"> | |
<div id="yourdivid_header"><p>Kommende News</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> | |
</div> | |
<?php endwhile; else: ?><p>No posts available</p><?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment