Hi!
I’m trying to get the value from a checkbox field in a repeterer field:
<?php if( have_rows('repeterer_field') ): ?>
<?php while( have_rows('repeterer_field') ): the_row();
// vars
$checkbox = get_sub_field('checkbox');
?>
<?php if( $checkbox && in_array('test_en_lab', $checkbox) ): ?>
<span class="lab">
Test en lab
</span>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
But I get noting in frontend.
Any ideas?
Nevermind, this code just works well.
I had an other text field with the same name. Silly me -_-