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
If you added a true/false field to a content type and its default state is false, you would want to also check for NOT EXISTS, though, to return the full set, as ACF won’t autopopulate the false state for all posts, no? So usually if I’m working with a true/false field, my meta query is looking both for posts with the 0 value (false) in the key or posts where the key doesn’t exist at all.
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.