function zozotabs() { ?> <?php enqueue_jquery_tabs(); ?> <h2>heading</h2> <section class = "acf_tabs"> <div class = "container"> <div id="tabbed-nav"> <ul> <?php $repeater_field_name = 'repeater_tabs'; if (have_rows($repeater_field_name, false)) { // loop through the rows of data while (have_rows($repeater_field_name, false)) { the_row(); ?> <li> <a> <?php gsf('tab_menu_item', '', '', false); ?> </a> </li> <?php } } else { // no rows found } ?> </ul> <div> <?php if (have_rows($repeater_field_name, false)) { ?> <?php while (have_rows($repeater_field_name, false)) { the_row(); ?> <div> <?php //SHORTCODES DONT WORK WHEN USING THE GSF(); ML FUNCTION ?> <h2> <?php echo get_sub_field('tab_title'); ?> </h2> <?php echo get_sub_field('tab_content'); ?> </div> <?php } ?> <?php } else { // no rows found } ?> </div><!--div--> </div> <!--tabbed nav--> </div> </section> <?php }
function timeline() { ?> <section class="timeline cd-timeline"> <div class="container"> <?php $repeater_field_name = 'marker'; ?> <?php if (have_rows($repeater_field_name)) { ?> <?php while (have_rows($repeater_field_name)) { the_row(); ?> <div class="cd-timeline-block"> <div class="cd-timeline-img"> <span class = "icon star_icon"></span> </div> <div class="cd-timeline-content"> <?php gsf('marker_title', '<h2>', '</h2>', false); ?> <?php gsf('date', '<span class = "date">', '</span>', false); ?> <?php gsf('marker_content', '<p>', '</p>', false); ?> </div> <!-- cd-timeline-content --> </div> <!-- cd-timeline-block --> <?php } } else { // no rows found } ?> <span class = "start icon pager-icon"></span> </div> </section> <?php }