Home › Forums › General Issues › Sorting by custom fields › Reply To: Sorting by custom fields
ACF stores dates as ‘YYYMMDD’ Sorting on this field as either a number or as text should work.
couple of questions
You said that this is a date field, but is this date field a sub field of a repeater or in a flexible content field?
Can you successfully make this filter sort by anything else? For example do these change the order?
'orderby' => 'title',
'order' => 'ASC'
'orderby' => 'title',
'order' => 'DESC'
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.