Home › Forums › Bug Reports › Checkboxes no longer working › Reply To: Checkboxes no longer working
Hi @tpuell
Yes, the checkbox field saves it’s data as an array. This is becuase they may be multipl values selected or 1.
This way, the returned value is always an array which makes the front end code easier to use (don’t have to ask if it is or isnt an array – lots of noob devs had issues with this)
Yes, the flip side to this is that the checkbox field is not good for creating a connection, but when you think about it, if you want to make a connection to another post, you only want 1 value, not multiple, so you should be using the select field instead.
Are you able to use the select field?
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.