• Resolved ender410

    (@ender410)


    Hello! This is probably really silly but I just cannot figure out for the life of me what is missing/wrong.

    So I have two tabs (Customize and Immerse) with custom fields all setup. When I view the page the two tabs show up, great. But on both tabs the content is showing both the feature_description and the immerse_description. I am trying to make it the feature_description show only on the customize and the immerse_description only show on the immerse tab but I just cannot seem to get it. Below is the tab content code which I know is where the mistake is. I have been working on this for about a day and tried a lot of different things, any help would be greatly appreciated!

    <div class="tab-content">
                    <div class="tab-pane fade in active" id="customize">
                        <?php if( have_rows('customize') ):
                        	while ( have_rows('customize') ) : the_row() ?>
                        	<h3>Customize</h3>
                            <div class="row">
                               <?php the_sub_field('feature_description'); ?>
                    </div>
                </div>
                <?php endwhile ; endif; ?>
            <div class="tab-content">
                    <div class="tab-pane fade in active" id="immerse">
                        <?php if( have_rows('immerse') ):
                        while ( have_rows('immerse') ) : the_row() ?>
                        	<h3>Immerse</h3>
                            <div class="row">
                               <?php the_sub_field('immerse_description'); ?>
                    </div>
                </div>
                <?php endwhile ; endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ender410

    (@ender410)

    Still stuck on this, no change yet. Been trying a few other things but nothing ground breaking or working.

    Thread Starter ender410

    (@ender410)

    I was able to figure it out! just needed to change some of the dibs and add an else statement.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin:Custom Fields] Field loop with Tabs’ is closed to new replies.