Repeater

Below code is show how to display repeater and ‘portfolio_repeater’ is a repeater name


if( have_rows('portfolio_repeater') ):
   while ( have_rows('portfolio_repeater') ) : the_row();
        the_sub_field('image');
        the_sub_field('project_name');
        the_sub_field('project_info');
        the_sub_field('project_link');
   endwhile;
endif;

File

Below code is show how to display file


$file = get_field('file'); OR
$file = get_sub_field('file');

Gallery

Below code is show how to display gallery


$images = get_field('gallery');
$size = 'full'; // (thumbnail, medium, large, full or custom size)
if( $images ): ?>