[Plugin:Custom Fields] Field loop with Tabs
-
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_descriptionand theimmerse_description. I am trying to make it thefeature_descriptionshow only on the customize and theimmerse_descriptiononly 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; ?>
The topic ‘[Plugin:Custom Fields] Field loop with Tabs’ is closed to new replies.