Home › Forums › General Issues › Issue with meta_query and ACF › Reply To: Issue with meta_query and ACF
Hi @cutout
Thanks for the info.
If the field type is an image, then your meta_query will NOT work. Your meta_query is comparing the value to 1. No image uploaded to WP will ever have a post_id of 1, so this will not work.
You need to consult the WP_Query args and find the meta_query COMPARE for ‘EXISTS’
That should work
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.