How can I change the order of posts in the admin dashboard, so they display alphabetically according to title, rather than latest first?
Leave a Reply
You must be logged in to post a comment.
How can I change the order of posts in the admin dashboard, so they display alphabetically according to title, rather than latest first?
You must be logged in to post a comment.
If you don’t wish to always click the “Title” column to sort your posts by title, you can place this code in either your currently active WordPress theme’s
functions.php
file, or within a plugin. This will automatically always sort your posts for you, so you don’t have to click the title column every time.You can use this for setting default sort order on post types.
You can use some of these example conditions…
If you wanted to apply this sorting on ALL post types, regardless of whether or not they are “built-in”…
Change this:
$post_types = get_post_types(array('_builtin' => true), 'names');
To this:
$post_types = get_post_types('', 'names');
Ah, click that little title thingy to toggle alphabetical sorting….