I am trying to only allow 5 repeaters show on each page. I have tried the walkthough here: http://jonathannicol.com/blog/2014/03/06/paginating-an-advanced-custom-fields-repeater/ but can not seem to get it to work.
My repeater is built to that the admin can choose a page and then the ACF information from that page will show on the screen.
Here is the page that has the information: http://victory-sites.com/modern-companies/our-portfolio/
Here is the code that I am using to make it happen.
$rows = get_field(‘portfolio_items’);
if($rows)
{
foreach($rows as $row)
{
$emptyMessage = ”;
$single_portfolio_item=$row[‘single_portfolio_item’];
$thepageid = $single_portfolio_item->ID;
?>
ID); ?>”>
<div class=”singleportitem”>
<div class=”holdimage”>
<?php
$rows = get_field(‘project_images’, $thepageid);
if($rows)
{
$show = “0”;
foreach($rows as $row)
{
$imageother=$row[‘image’];
$business_tags=$row[‘business_tags’];
if ($show == “0”) {
?>
” height=”137px” />
<? }
$show ++;
} } ?>
</div>
<div class=”holdinfo”>
<span class=”porttitle”><?php echo $single_portfolio_item->post_title ?></span>
<span class=”portlocationyear”><? the_field(‘location’, $thepageid); ?></span>
<span class=”portlocationyear”><? the_field(‘date’, $thepageid); ?></span>
</div>
<div class=”moreinfobtn”></div>
</div>
<? } } ?>