Support

Account

Home Forums General Issues Image Field in Repeater not passing image URL to page Reply To: Image Field in Repeater not passing image URL to page

  • I’ve made a simpler new page on the Staging server and it also does not show images in the repeater. They are there in the admin. Var_Dump included:

    if(have_rows('image_test_repeater')) :
        while(have_rows('image_test_repeater')) : $rowHold = the_row();
    
            var_dump($rowHold);
            
            echo("BEFORE");
            if(get_sub_field('test_image_file')) {
                echo("<img src='");
                the_sub_field('test_image_file');
                echo("'>'");
            }
            echo("AFTER");
    
        endwhile;
    endif;

    And out put is:

    array(1) { ["field_57c8633980573"]=> string(4) "2117" } !!BEFOREAFTERarray(1) { ["field_57c8633980573"]=> string(4) "2114" } !!BEFOREAFTER

    Those are the correct post_ids for the images, in the dump.