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’ );
    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’); ?>
    <?php endwhile; ?>