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; ?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.