Hey Man,
where you able to figure this out?
Elliot,
what if there are a total of 12 results and I just wanted to show the last 4?? So results 8-12
What if out of those 4 you only wanted to show 3 and 4?
got it figure out
<?php $rand = rand(0,4); $i = 0; ?>
<?php while(the_repeater_field('clapper_images', '24')): ?>
<?php if($rand == $i): ?>
<?php the_sub_field('people_clappers_images', '24'); ?>
<?php endif; ?><?php $i++; ?>
<?php endwhile; ?>
Ok, thanks. I did some more research and came across this coding:
<?php while(the_repeater_field('clapper_images', '24')): ?>
<?php if($rand == $i): ?>
<?php the_sub_field('people_clappers_images', '24'); ?><?php endif; ?><?php $i++; ?>
<?php endwhile; ?>
It works, but only echos out one image and the same image every time. Any ideas how to get it to echo out a random image each time.