Home › Forums › ACF PRO › Check if any choices is selected of a checkbox › Reply To: Check if any choices is selected of a checkbox
You are talking about doing a search type application where only existing values are shown.
To do this you would need to do a query to get all of the posts, loop over them and see what is set. This would be a time consuming process.
The other option is to keep track of what is available.
But there isn’t any way to find out which values are selected directly.
Unless you’re saying that the checkbox field is a taxonomy field and then that would be a completely different story. But if this is the case it is not obvious from your description.
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.