Home › Forums › Backend Issues (wp-admin) › Make a single value post object sortable (edit.php table column) › Reply To: Make a single value post object sortable (edit.php table column)
You would need to do a query of the posts of that type, getting them all 'posts_per_page' => -1,
and order them by whatever you want to order them by. You can return just a list of IDs by setting 'feilds' => 'ids',
Then you can use this returned array of IDs to order your posts. To do this you set 'post__in' => $return_from_first_query,
and 'orderby' => 'post__in'
.
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.