Home › Forums › General Issues › Issue with meta_query and ACF › Reply To: Issue with meta_query and ACF
Hi @cutout
looking at the docs (http://codex.wordpress.org/Class_Reference/WP_Query) i can see that the meta_query array param requires a key and value. Sorry, I did not see that you were using this as an array, but thought you were using the basic meta_key / meta_value params.
The issue is most likely with the value true
. WordPress only saves strings to the DB, not booleans. Perhaps if you change the value to ‘1’ it will work?
Failing that, please download a plugin to debug your DB queries, then review the SQL produced to find what is wrong with the query.
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.