• Is there any special kind of syntax needed when using ACF checkbox fields as a parameter in the loop alongside another variable? I have one that won’t work no matter what I try.

    On it’s own it’s fine:

    [loop type=custom checkbox=the_field value=some_value]
    ..
    [/loop]

    But when you add another parameter it doesn’t work:

    [loop type=custom checkbox=the_field value=some_value field=another_field value=another_value]
    ..
    [/loop]

    I’ve tried:

    [loop type=custom checkbox=the_field value=some_value field_2=another_field value_2=another_value]
    ..
    [/loop]

    as well as reversing the order (field first, checkbox second) but no good. I’m assuming it’s because there are two “value” parameters?

    • This topic was modified 6 years, 1 month ago by baldidiot.
    • This topic was modified 6 years, 1 month ago by baldidiot.
    • This topic was modified 6 years, 1 month ago by baldidiot.
    • This topic was modified 6 years, 1 month ago by baldidiot.
    • This topic was modified 6 years, 1 month ago by baldidiot.

The topic ‘Loop not working with ACF checkboxes when combined with another field’ is closed to new replies.