Sort Posts in Ascending Order through wp_get_archives
I’m trying to show post titles ordered in a ascending order so the old posts show first, I used <?php wp_get_archives(‘type=postbypost&order=asc’); ?> which shows the post titles but displays them in descending order. I understand there are some plugins and also some wp_query codes that can be used to achieve this but I just thought there should be a simple way to do this and I don’t see any reason why the above code shouldn’t work. I would really appreciate it if someone could help me out here.
- The topic ‘Sort Posts in Ascending Order through wp_get_archives’ is closed to new replies.