Home › Forums › General Issues › Custom post type navigation ordered by ACF date field › Reply To: Custom post type navigation ordered by ACF date field
The functions you are using do not have filters that are easily usable. You would have to manipulate the actual SQL. They will always return something based on the WP post date.
If you want this to work then you’d have to update the WP post date based on the ACF field value.
If you don’t want to do that then you’d have to write your own queries.
I would make the following suggestions.
You should also be limiting your queries for the first and last post to 1 as well, there is no need to get multiple posts when you only need 1.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.