The order of categories on dashboard is alphabetical. Can I change it to custom order?
Leave a Reply
You must be logged in to post a comment.
The order of categories on dashboard is alphabetical. Can I change it to custom order?
You must be logged in to post a comment.
Found an answer in this answer.
The order may be
ASC
orDESC
, and the orderby can be:count
description
(it should, but didn’t work so well for me, futher tests necessary)name
slug
Plugins of interest
(may we call those Plinterests?)
The first two are very short and and can be easily incorporated into your code.
Category Checklist Expander : expands the height of the category list, so no scrolling is needed
Category Checklist Tree : this one rebuilds the Category Meta Box, so you can modify its code for further styling/adapting the box – and here’s a screenshot of what it does
Gecka Terms Ordering : creates an auxiliary table in the database (
wp_termmeta
) to deal with the ordering. Has drag and drop capabilities.Use the plugin Advanced Custom Fields (This plugin is handy in many different ways). Then create an custom order field (category_order) with the rule ‘Taxanomy_Term’ is equal to ‘Categories’.
Then in your theme functions.php (or somewhere relevant) use:
Where category_order is the field name you created with ACF.
This post inspired by this one here.
There’s no default option for it, but there’s two other ways.