Home › Forums › Add-ons › Repeater Field › Displaying repeater field data › Reply To: Displaying repeater field data
If you image’s return value is on “Image Object”, you can grab the full size easily. Look at the code below:
<?php while(has_sub_field('top_links')): ?> <li> <a href="<?php the_sub_field( 'link_url'); ?>" target="_blank"> <img src="<?php $image = get_sub_field('link_image'); echo $image['url'] ?>"> </a> </li> <?php endwhile ?>
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.