Support

Account

Home Forums Add-ons Repeater Field Display repeater array values Reply To: Display repeater array values

  • Hi @phantasmix

    I’ve just checked your checkbox field, and it seems it has the same labels and values. This makes the code much simpler. You can just get the subfield value like before:

    $expertise = get_sub_field('expertise');

    And then loop it like this:

    <?php foreach( $expertise as $value ): ?>
    	<div><?php echo $value; ?></div>
    <?php endforeach; ?>

    Please check it out. I hope this helps.