1. Go to this page and download the library: Download tio27/avilio library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// get value from acf field
$display = get_field('field_name');
$display_option = get_field('field_option_name','option');
// repeater field
if( have_rows('parent_repeater') ):
while( have_rows('parent_repeater') ) : the_row();
$title = get_sub_field('sub_title');
$desc = get_sub_field('sub_description');
$image = get_sub_field('sub_image');
endwhile;
endif;
use Avilio\ACF;
// get value from acf field
$display = ACF::field('field_name');
$display_option = ACF::option('field_option_name');
//repeater field
$repeater_field = ACF::field('parent_repeater',[
'title' => 'sub_title',
'desc' => 'sub_description',
'image' => 'sub_image'
])
// The output from the repeater field above will be in the form of an array that you can use in your template.