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; ?>
    
    
  • solved! link:
    http://www.advancedcustomfields.com/resources/tutorials/working-with-nested-repeaters/

    thank you, pardon the disorder

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.