function amt_interface_single_portfolio() { if (amt_check_portfolio_template()) { amt_get_template_part('single', 'portfolio'); } else { amt_get_template_part('single', 'blog'); } }
?> <?php // check if the flexible content field has rows of data if (have_rows('layout')) { $loop_counter = 1; // loop through the rows of data while (have_rows('layout')) { the_row(); $layout = get_row_layout(); echo '<div class="layout-container ' . $layout . ' num_' . $loop_counter . '">'; amt_get_template_part('page', $layout); echo '</div>'; ++$loop_counter; } } else { amt_get_template_part('page', 'basic'); } ?> <?php } ?> <?php } /*have_posts*/ ?> </div> <?php get_footer();