Home › Forums › General Issues › How to display total no of users in checked ACF field. › Reply To: How to display total no of users in checked ACF field.
You have 2 choices
1) you can do a query for all of the posts in the CPT, loop through them and count the check boxes
2) You can do an individual query for each of the 4 values. See the section titled 3. Multiple custom field values (array based values) on this page https://www.advancedcustomfields.com/resources/query-posts-custom-fields/. (Checkboxes are stored as arrays.)
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.