Home › Forums › ACF PRO › ACF Taxonomy – Load terms in order they are entered? › Reply To: ACF Taxonomy – Load terms in order they are entered?
I do not think that there is any way to do this. With load terms on ACF gets the terms in the order that WP returns them in the order WP orders them. With Save terms on nothing is saved that would tell you what order they are in.
I don’t know if this will work. What I would try is to not use not use the ACF save and load terms feature and instead create my own filters that would do the loading and saving of terms (get_terms and set_terms). If you do this then the value returned by ACF will be in the order that the terms were selected and you may be able to use this to somehow order the terms. With save terms/load terms off ACF saves an array of term IDs in the DB in the order selected. With them on this value is not saved or loaded and any call to get_field() ignores the value in the DB even if it is there.
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.