Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

acf repeater

<?php 
if( have_rows('repeater_field_name') ) {
    while( have_rows('repeater_field_name') ) {
        the_row();
        $first_row_title = get_sub_field('title');
        // Do something...
        break;
    }
}
Source by www.advancedcustomfields.com #
 
PREVIOUS NEXT
Tagged: #acf #repeater
ADD COMMENT
Topic
Name
2+3 =