Home › Forums › ACF PRO › Show only posts with acf field set to false and other args › Reply To: Show only posts with acf field set to false and other args
You likely also need to check to see if the meta key doesn’t exist at all with a NOT EXISTS in the compare. So you’re doing an ‘OR’ relation meta query looking for either a null state or that the key does not exist at all.
If you have a true/false field and you save a post in the false state, it doesn’t create the key with an initial false state.
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.