Home › Forums › Add-ons › Repeater Field › ACF Pagination
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;
?>
?>
” 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>
<? } } ?>
The topic ‘ACF Pagination’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.