Home › Forums › Add-ons › Repeater Field › Order by date, repeater field › Reply To: Order by date, repeater field
Hi @eiriksk
This will not be possible with any WP_Query args, so you will need to do this custom ordering with custom PHP logic.
Firstly, load the posts via the get_posts function, and then loop over them.
For each post, load in the playing dates data and use this data to construct an array where one of the columns is the playing time.
Then you can use the code in the above tutorial to sort this custom array based on the playing time.
Good luck
Thanks
E
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.