Home › Forums › General Issues › Order by true/false field using WP_Query › Reply To: Order by true/false field using WP_Query
Hi @istrasoft
I think unfortunately, this is a limitation of the WP_Query object. For WP to order the posts, each post must have a value in the meta field ‘complete’. If no value is found, the SQL won’t run correctly for that post.
Perhaps there are some resources on Google that show how to use a default meta value for posts that don’t have a value?
Thanks
E
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.