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