Written by me@grafxflow
18 Mar, 2013
0
3,100
By default WordPress orders your posts by the edit/added date. But what happens if you want them to be ordered Alphabetically.
Open the following files:
And find where it says in each file...
<?php if ( have_posts() ) : ?>
Now add the following line above it so it looks like below.
<?php query_posts($query_string . '&orderby=title&order=ASC'); ?>
<?php if ( have_posts() ) : ?>
If you want to order the posts by another value other than Alphabetical then here are the references parameters for WordPress.
30 Apr, 2017
11 Mar, 2013
16 Jul, 2015
I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!
Follow11 Jul, 2023
21 Jun, 2023
Views: 168,302
Views: 41,266
Views: 38,840
Views: 35,858