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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.