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
Try this and tell me what you get
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 'IMAGE EXISTS ID = '.get_sub_field('test_image_file');
echo("<img src='");
the_sub_field('test_image_file');
echo("'>'");
}
echo(" AFTER");
endwhile;
endif;
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.