12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Mar 12, 2021

How to display checked and unchecked choices of ACF Checkbox

Sridhar Katakam

This members-only tutorial provides the steps to display all the choices and not just the checked ones when using Checkbox-type of custom field with Advanced Custom Fields.

Checkbox-type of custom field being defined
Checkbox field being populated
Output on the front end after implementing this tutorial

Step 1

Create a ACF field group having your Checkbox-type of field.

Edit the Page/Post/entry where you have set the field group to appear and populate the field by ticking your desired choices.

Step 2

In the Template that renders your view add this PHP:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right