I have followed the exiting tutorial about how to use the repeater field and the tutorial was great!
When I add this code into my index page it wont show up, only if the query string equals the page id. I’m not a PHP coder in anyway. So it would save me some tears if someone could help me out.
Exiting Code
<?php if (get_field('staff_members')): ?>
<div class="staff-members">
<?php while (has_sub_field ('staff_members')): ?>
<div class="col-md-4">
<img class="img-circle" src="<?php $image = get_sub_field('image'); echo $image['url']; ?>">
<h3><?php the_sub_field('name'); ?> </h3>
<h4><?php the_sub_field('quote'); ?></h4>
<p><?php the_sub_field('desc'); ?></p>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
Best Regards,
Danny