title: WP Advanced Custom Fields repeater pagination
body: <p>I'm fairly new to PHP and do a lot of work in Wordpress. I installed the ACF plugin and have customized my loop within the correct parameters. I am wondering if there's a way to paginate after a certain number of entries. I tried paginating using custom loops for the have_posts area but that didnt seem to do the trick and also removed the Repeater loop for the page. I also tried looking for support on the ACF forum itself and its something that hasn't  been solved. I feel like this might be an easy thing to do but I'm new to this and don't really understand what loop to put it in(?). I would like to paginate after 4 entries. Thanks so much for you input in advance!</p>
  
  <p>Here is the code I'm using on a custom page template for wp</p>
  
  <pre><code>&lt;?php if(have_posts() ) : while (have_posts()) : the_post(); ?&gt;
  
  &lt;!--- START LOOP ---&gt;   
  
  &lt;?php $columns = get_field( 'events' ); ?&gt;
  &lt;?php if($columns): ?&gt;
          &lt;?php foreach( $columns as $column ): ?&gt;
              &lt;div id="event"&gt;
              &lt;?php if($column['events_items']): ?&gt;
  
              &lt;?php foreach($column['events_items'] as $item ): ?&gt;
  
  
  &lt;div id="presents"&gt;&lt;?php echo $item['presented_by']; ?&gt;&lt;/div&gt;
              &lt;div id="date"&gt;&lt;?php echo $item['date']; ?&gt;&lt;/div&gt;
  &lt;div id="location"&gt;AT &lt;?php echo $item['venue']; ?&gt;&lt;/div&gt;
  &lt;div id="city"&gt;&lt;?php echo $item['city_state']; ?&gt;&lt;/div&gt;
  &lt;div id="flier"&gt;&lt;a class="inline" href="#&lt;?php echo $item['id']; ?&gt;"&gt;&lt;img src="&lt;?php echo $item['flyer']; ?&gt;" alt="" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;div id="headliner"&gt;&lt;?php echo $item['headliner']; ?&gt;&lt;/div&gt;
  &lt;div id="artist2"&gt;&lt;?php echo $item['support1']; ?&gt; - &lt;?php echo $item['support2']; ?&gt;&lt;br&gt;
  &amp; &lt;?php echo $item['support3']; ?&gt;&lt;/div&gt;
  
  
  
  &lt;div style="display:none"&gt;&lt;div id="&lt;?php echo $item['id']; ?&gt;" class="event_popup"&gt;&lt;div id="event_detail"&gt;
  &lt;div id="event_left"&gt;
  &lt;div id="event_headliner"&gt;
  &lt;div id="event_headlinername"&gt;&amp;nbsp;&lt;?php echo $item['headliner']; ?&gt;&lt;/div&gt;
  &lt;div id="event_headlinerpic"&gt;&lt;a href="&lt;?php echo $item['headliner_url']; ?&gt;" target="_blank"&gt;&lt;img src="&lt;?php echo $item['headliner_image']; ?&gt;" alt="" border=0/&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="event_videobio"&gt;
  &lt;div id="event_video"&gt;&lt;iframe src="http://www.youtube.com/embed/&lt;?php echo $item['video_url']; ?&gt;?rel=0" frameborder="0" width="250" height="200"&gt;&lt;/iframe&gt;&lt;/div&gt;
  &lt;div id="event_bio"&gt;&lt;?php echo $item['headliner_bio']; ?&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="event_right"&gt;
  
  &lt;div id="event_support"&gt;
  &lt;div id="event_supportname"&gt;&amp;nbsp;&lt;?php echo $item['support1']; ?&gt;&lt;/div&gt;
  &lt;div id="event_supportpic"&gt;&lt;a href="&lt;?php echo $item['support1_url']; ?&gt;" target="_blank"&gt;&lt;img src="&lt;?php echo $item['support1_image']; ?&gt;" alt="" border=0/&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="event_support"&gt;
  &lt;div id="event_supportname"&gt;&amp;nbsp;&lt;?php echo $item['support2']; ?&gt;&lt;/div&gt;
  &lt;div id="event_supportpic"&gt;&lt;a href="&lt;?php echo $item['support2_url']; ?&gt;" target="_blank"&gt;&lt;img src="&lt;?php echo $item['support2_image']; ?&gt;" alt="" border=0/&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="event_support"&gt;
  &lt;div id="event_supportname"&gt;&amp;nbsp;&lt;?php echo $item['support3']; ?&gt;&lt;/div&gt;
  &lt;div id="event_supportpic"&gt;&lt;a href="&lt;?php echo $item['support3_url']; ?&gt;" target="_blank"&gt;&lt;img src="&lt;?php echo $item['support3_image']; ?&gt;" alt="" border=0/&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
  
  &lt;div id="event_bottom"&gt;sdoifjsoafjdaiosfjdasoifj oosdafja&lt;/div&gt;
  
  
              &lt;/div&gt;
          &lt;/div&gt;
  
  
              &lt;?php endforeach; ?&gt;
              &lt;?php endif; ?&gt;
              &lt;/div&gt;
          &lt;?php endforeach; ?&gt;
  &lt;?php endif; ?&gt;
  
  
  &lt;!--- END LOOP ---&gt;
  
  
   &lt;?php endwhile; endif;  ?&gt;
  </code></pre>