Support

Account

Home Forums Add-ons Repeater Field Repeater RANDOM From Another Page Reply To: Repeater RANDOM From Another Page

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