Support

Account

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