Home › Forums › General Issues › Sort by menu order with get_field_objects() › Reply To: Sort by menu order with get_field_objects()
Hi @avishay28
If you use var_dump($fields);
, you will see that each field object has a “menu_order” value. You can use array_multisort() on this value to sort it like sorting a repeater field. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/.
I hope this helps.
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.