Home › Forums › General Issues › Time sorting for time picker field not working regardless of format › Reply To: Time sorting for time picker field not working regardless of format
I’ve also tried using ‘orderby’ => ‘meta_value’ and a combination of meta_query arrays where ‘key’ => ‘start_time’ and I still haven’t gotten the posts to sort correctly.
In fact, where it seemed at first to be doing doing a numerical sort and ignoring the UNIX timestamp format, I’m querying three other post types that use identical custom fields and it looks like there’s really no sorting going on at all, with events coming in any order (3, 2, 5 and 6pm, for example, in one of the post archives).
Thanks!
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.