Quantcast
Channel: All Discussions - Plugin Support
Viewing all articles
Browse latest Browse all 3560

[Solved] First image from a repeater field

$
0
0
Hi, I have a repeater field for images and I'm displaying the thumbnails like this:

<?php while(the_repeater_field('images')): ?>
<?php $thumb = wp_get_attachment_image_src(get_sub_field('image'), 'thumbnail'); ?>
">
image" />

<?php endwhile; ?>

What I would like to do now is display only the thumbnail for the FIRST image.
Any help would be appreciated muchly.

Viewing all articles
Browse latest Browse all 3560

Latest Images

Trending Articles



Latest Images