Wordpress how to Arrange Posts in ascending order


2 Votes, Rating: 41 Star2 Stars3 Stars4 Stars5 Stars

Tags:

Recently, I was creating one website in which there were loads of database entries which I needed to integrate into Wordpress Blogging system as it is really flexible.

But the default option of Wordpress is that it always shows all the posts in reverse chronological order but I wanted to change posts order so that the posts on the front page is displayed in an ascending order.

Just add the following code just before “if(have_posts())“ and your posts will be arranged in an ascending order.

query_posts($query_string.”&order=ASC”);

Hope that helps someone who is looking for this code. If you have any other Wordpress queries, then you can make a comment on this post.

Share/Save/Bookmark

One Response to “Wordpress how to Arrange Posts in ascending order”

  1. Ubi says:

    Thanks. This is exactly what i am looking for. But still, you could try to add the file that needs editing :)

Leave a Reply


CSS (Design) - TOP.ORG