Home › Forums › Feature Requests › add orderby paramt to get_field_objects() please › Reply To: add orderby paramt to get_field_objects() please
ACF just calls get_post_meta($post->ID);
, there’s nothing to filter to change the order. WP gets the meta values in ID order, meaning that they are always returned in the order they were created. Look at the WP function update_meta_cache()
. There is one filter in there that might let you change the query.
If you want to display fields in a certain order then you need to get the fields where you want them displayed.
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.