Title: Cannot count in repeater
Last modified: August 24, 2016

---

# Cannot count in repeater

 *  Resolved [shavonn4prez](https://wordpress.org/support/users/shavonn4prez/)
 * (@shavonn4prez)
 * [11 years ago](https://wordpress.org/support/topic/cannot-count-in-repeater/)
 * On my post pages, I have them in blocks, 3 per row and wrap every 3 in a div.
   How can this be accomplished with the repeater? I cannot track where I am in 
   the loop to wrap.
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [shavonn4prez](https://wordpress.org/support/users/shavonn4prez/)
 * (@shavonn4prez)
 * [11 years ago](https://wordpress.org/support/topic/cannot-count-in-repeater/#post-6118544)
 * Looked in the code and saw $alm_loop_count so I used that 🙂
 *     ```
       <?php if($alm_loop_count == (($alm_loop_count-1) % 3 == 0)) {echo '<div class="row activity-row">';}
   
              //looooooooooop
   
           if($alm_loop_count % 3 == 0 ) {echo '</div>'; }
        ?>
       ```
   
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years ago](https://wordpress.org/support/topic/cannot-count-in-repeater/#post-6118553)
 * Nice find, yea all the available template variables are listed here – [https://connekthq.com/plugins/ajax-load-more/docs/variables/](https://connekthq.com/plugins/ajax-load-more/docs/variables/)
 *  [EOSlover](https://wordpress.org/support/users/eoslover/)
 * (@eoslover)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-count-in-repeater/#post-6118871)
 * `$alm_loop_count` is not listed in the documentation.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot count in repeater’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [EOSlover](https://wordpress.org/support/users/eoslover/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/cannot-count-in-repeater/#post-6118871)
 * Status: resolved