Home › Forums › General Issues › Whats the value of a filled field in Query? › Reply To: Whats the value of a filled field in Query?
Hi @Henric Åkesson
If you head over to the docs http://codex.wordpress.org/Class_Reference/WP_Query and jump down to the “Custom Field Parameters” section, you will see that each meta_query array can have a ‘compare’ attribute. Just set this to “EXISTS” to test if the custom field value exists.
Hope that helps.
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.