Home › Forums › ACF PRO › Tabs with ACF pro › Reply To: Tabs with ACF pro
I try to use one example find in this forum, but i have problem.
I attach all screenshot in order.
This is code i add in php
<ul class=”nav nav-tabs” role=”tablist”>
<li role=”presentation” class=”active”>Home
<?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”>Profile
<?php } } ?>
<!– 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”>
” 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.