Support

Account

Home Forums General Issues ACF Repeater – Checkbox Subfield with Multiple Values Reply To: ACF Repeater – Checkbox Subfield with Multiple Values

  • You can adjust it to use an OR operator by something like:

    <?php if( have_rows('resources') ): while( have_rows('resources') ) : the_row();
    $colors = get_sub_field('show_for');
    if( !empty($colors) && ( in_array('usersme', $colors) || in_array('other_value', $colors) ) { ?>
     TEST
    <?php } endwhile; endif; ?>