Support

Account

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;
    ?>

    `