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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.