Home › Forums › ACF PRO › Admin Column A-Z sorting for Object field › Reply To: Admin Column A-Z sorting for Object field
No, not directly. The value stored in ‘place’ is the post ID. There is nothing stored for the ‘Homes’ post that has this information.
In order to do this you would need to create an acf/save_post filter https://www.advancedcustomfields.com/resources/acf-save_post/
In this filter you would need to get the post title, or whatever it is from the other post that you really want to sort by and then save this value for the “Place” post in another meta value https://codex.wordpress.org/Function_Reference/add_post_meta
I cover this idea for repeater fields here https://acfextras.com/dont-query-repeaters/ but the principle would be the same for this, you’re just using different information.
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.