Looper over ACF checkboxes can't target key/value

I have a checkbox field that I’m trying to show a value based on whether or not it shows. I have an ACF checkbox field set up as follows:

A : Option 1
B : Option 2

In my looper, I can access the field from the looper, but it always only shows the label. I can’t ever get it to show A, B, ... instead of the labels Option 1, Option 2, ...

How do I target either the value or label (even changing the return from ACF doesn’t change it. Please advise.

Hello @jrhager84,

Thanks for posting in!

Please edit your ACF Pro field first. Make sure that the return format is set to “Value” and not the Label.

Kindly let us know how it goes.

I did. I’m not sure what did it, but erasing the values and putting them back in in the page where it shows fixed it.

Hello @jrhager84,

It is good to know that you have resolved your issue already. Please feel free to create another thread if you need any other information.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.