Is there any way to change the order that the posts appear in each category? By default it always showed the last entered as first, but this does not work for my purpose organizationally.
Thanks!!
Is there any way to change the order that the posts appear in each category? By default it always showed the last entered as first, but this does not work for my purpose organizationally.
Thanks!!
In the query_posts() have you tried using 'order=ASC' or 'order=DES'?
I use the following code:
query_posts("$cat&paged=$page&orderby=title&order=ASC");
($cat is a concatinated string and $page is for pagiantion purpose)
Look at the documentation for get_posts() at http://codex.wordpress.org/Template_Tags/get_posts
There are two parameters that you can use. The first is 'order' and it allows you to sort the posts ASC (ascending) or DESC (descending), in chronological order.
The second is 'orderby'. Use this to order by post_title, post_date, ID, post_modified, etc...
Yes, query_posts() can be used as well. See http://codex.wordpress.org/Template_Tags/query_posts
This topic has been closed to new replies.