Home › Forums › ACF PRO › Sort post by acf date first and after by title › Reply To: Sort post by acf date first and after by title
Me neither… I don’t understand.
Yes my code is running.
I tried running it with :
//$query->set( 'tax_query', $taxquery );
It doesn’t interfer.
The field ‘date_de_sortie’ is my ACF date picker field.
If I set ‘date_clause’ => ‘DESC’, it effectively sorts posts in the opposite direction which is logical, but always posts without any ‘date_de_sortie’ are in first.
Hope I’m clear in my explanations ;-).
Best.
Pierre
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.