Home › Forums › Add-ons › Repeater Field › images in repeater form › Reply To: images in repeater form
having got the repeater form to work with text and wysiwyg formats I am now trying to add a sub field with an image I have it showing up on the edit page but when previewed I can only see url not the graphic am I needing to add a bit of code ? please excuse my ignorance I am new to coding.
<?php
// check if the repeater field has rows of data
if( have_rows('features') ):
// loop through the rows of data
while ( have_rows('features') ) : the_row();
// display a sub field value
the_sub_field('hero');
the_sub_field('content');
endwhile;
else :
// no rows found
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.