Wordpress Post order
- by kwek-kwek
I wanted to re-arrange my post in wordpress so they go Ascending/Descending.
Here is my code:
<ul>
<?php $postslist = get_posts('cat=3,4,5,numberposts=5&order=DESC&orderby=date');
foreach ($postslist as $post) : setup_postdata($post); ?>
<li>
<span class="date"><?php the_time('M j') ?></span>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
Each post is pulled from different categories.