Support

Account

Home Forums Add-ons Repeater Field Probleme with repeater field and modal Zurb Foundation Reply To: Probleme with repeater field and modal Zurb Foundation

  • <?php if( have_rows('bloc-modal')) : ?>
    
    				<?php $i = 0; while(the_repeater_field(‘bloc-modal')): ?>
    					<div class="medium-3 columns »>
    						
    						<a href="#">">
    							<img /> »/>
    							<h5 class="title-presta"><?php the_sub_field('menu_titre'); ?></h5>
    						</a>
    						
    						<div id="myModal<?php echo $i ?>" class="reveal-modal" data-reveal>
    							<div class="medium-12 columns »>
    								<img /> »/>
    							</div>			
    							<a>×</a>
    						</div>
    
    					</div>
    				<?php $i++ ; endwhile; ?>
    			
    			<?php endif; ?>