'; // loop through rows (sub repeater) while( have_rows('accordion_list') ): the_row(); $accTitle = get_sub_field('accordion_title'); $accContent = get_sub_field('accordion_content'); // deploying as function due to weirdness preventing accordions from happening $tabs .= buildAccordion($accTitle,$accContent); endwhile; $tabs .= ""; endif; } // end tab $tabs .= '[/su_tab]'; endwhile; else : // no rows found endif; // let's finish $tabs .= "[/su_tabs]"; echo do_shortcode($tabs); ?>
Do NOT follow this link or you will be banned from the site!