How do I create a field of repetition in another field with repeat?
What am I doing wrong?
thank you very much
<?php if(get_field('repetition1')): ?>
<?php while(has_sub_field('repetition1')): ?>
<span class="tit">
<strong><?php the_sub_field('text1'); ?></strong>
<?php the_sub_field('text2'); ?>
</span>
<!-- SUB -->
<?php if(get_field('repetition2')): ?>
<?php while(has_sub_field('repetition2')): ?>
<span class="titolo3pag">
<strong><?php the_sub_field('text1_rep2'); ?></strong>
<?php the_sub_field('text2_rep2'); ?>
</span>
<br>
<?php endwhile; ?>
<?php endif; ?>
<!-- end SUB -->
<?php endwhile; ?>
<?php endif; ?>