Home › Forums › General Issues › Using ACF date to sort custom post types not sorting correctly › Reply To: Using ACF date to sort custom post types not sorting correctly
There’s no reason, looking at just what you’ve provided, whey the posts should not be returned in the correct order.
There are 2 possible causes that I know of.
1) There is another field for the same post type with the same field name “date”. Look for other fields on the same post type with the same name.
2) There is a filter somewhere that’s interfering with the query. Try disabling plugins and changing themes.
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.