Home › Forums › Front-end Issues › Display Featured Items First › Reply To: Display Featured Items First
You need to have two different meta queries for the date. One like you have to get the current or active events, this query will not have a “clause”. The second query will be the “EXISTS” query I posted earlier.
Also, you need to check the format of the data that ACF stores. If this is a “Date” field, ACF may not be storing in a standard “Date” format and type' => 'DATETIME'
is probably the wrong type to use.
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.