Answers for "get repeater inslider repeater in acf"

PHP
9

acf repeater

<?php

// ACF REPEATER - BASIC LOOP

// check if the repeater field has rows of data
if( have_rows('repeater_field_name') ):

 	// loop through the rows of data
    while ( have_rows('repeater_field_name') ) : the_row();

        // display a sub field value
        the_sub_field('sub_field_name');

    endwhile;

else :

    // no rows found

endif;

?>
Posted by: Guest on April-29-2020

Browse Popular Code Answers by Language