Home › Forums › Front-end Issues › Meta_compare with true/false field › Reply To: Meta_compare with true/false field
I am in a similar situation. I have added a true/false checkbox to existing fields and it doesn’t recognize an unchecked value as 0. When I echo the value of a checked box I get 1 and an unchecked box returns nothing. I have tried the bulk update posts to try to get the database to recognize this new fields and record a 0 but it doesn’t seem to work.
I have been working through this on another post
https://support.advancedcustomfields.com/forums/topic/true-false-no-value-for-false/#post-60222
but I have not had any success. I know the code makes sense but the results don’t display.
I’d love to know what you did to resolve this issue.
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.