Support

Account

Home Forums Add-ons Repeater Field Double field repetition

Solved

Double field repetition

  • 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; ?>
    
    
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Double field repetition’ is closed to new replies.