Sort Posts in Ascending Order through wp_get_archives
-
Hello Everyone,
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.
Thanks,
RJ_Dev
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Sort Posts in Ascending Order through wp_get_archives’ is closed to new replies.