ACF - Get selected fields - Flexible Content
<?php
/**
* Template name: Modules
*/
get_header(); ?>
<?php
if( have_rows('page_modules') ): while ( have_rows('page_modules') ) : the_row();
get_template_part( 'template-parts/acf_modules/'. get_row_layout() );
endwhile; endif;
?>
<?php get_footer();?>