Home › Forums › General Issues › get_terms orderby custom field › Reply To: get_terms orderby custom field
The short answer is that you can’t order your terms by a custom meta field unless you loop through them and create your own array of objects in that order.
However since you say they each have a number maybe this number is just so you can order them the way you want and nothing else really. If so you can use a plugin like this: https://wordpress.org/plugins/taxonomy-order/
There are also other plugins that do the same thing I just grabbed the first I could find 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.