Home › Forums › Add-ons › Repeater Field › Repeater Issue › Reply To: Repeater Issue
Hi Jonathan
I have solved this, I am loving this ACF.
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
<?php if ( have_rows('repeater', 'option') ) {
while ( have_rows('repeater', 'option') ) : the_row();
$image = get_sub_field('repeater_subfield1', 'option' );
endwhile;
if($image) {
?>
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
<?php } } ?>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">Home Text</div>
<div role="tabpanel" class="tab-pane" id="profile">
<?php while ( have_rows('repeater', 'option') ) : the_row(); ?>
<div class="col-sm-2 col-xs-6 color_showcase text-center">
<img src="<?php the_sub_field('repeater_subfield1'); ?>" alt="">
<?php the_sub_field('repeater_subfield2'); ?>
</div>
<?php endwhile; ?>
</div>
</div>
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.