Show the first posts
-
Hello !
In my template, I used to have this to show the latest entries :$r = new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1)); if ($r->have_posts()) : ?> <ul> <?php while ($r->have_posts()) : $r->the_post(); ?> <?php echo '<li><a href="'; echo the_permalink(); echo '">'; echo the_title(); echo '</a></li>'; ?> <?php endwhile ?>
But I would like to show it in the inverse order. (first posts first). How can I do this ?
This is probably really simple but I’m just beginning with wordpress !
Sorry for my english ??
Thanks for your help !
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Show the first posts’ is closed to new replies.