The Easiest Way to Save and Share Code Snippets on the web

Truco

php

posted: Jan, 10th 2010 | jump to bottom

<ul>
<?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; } ?>
</ul>
19 views