Home › Forums › ACF PRO › True/False – No Value for False › Reply To: True/False – No Value for False
when I var_dump the variable to see what the unchecked boxes value is it says false or null
The false return is from a post that has had the box checked, updated and then unchecked and updated. the null return is from posts that have not been updated.
Your code is logical but the database is not recording a 0 value for an unchecked box and I can’t go through every post and tick the box and save and then untick the box and save just to get it to reflect some value.
If you have any other ideas I’d love to see them. Thanks for your help!
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.