Title: Infinite scroll expanding posts
Last modified: August 24, 2016

---

# Infinite scroll expanding posts

 *  Resolved [awayka](https://wordpress.org/support/users/awayka/)
 * (@awayka)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/infinite-scroll-expanding-posts/)
 * Hello!
    I find that jetpack module “infinite scroll” is expanding posts when 
   dynamically load them. You recommend to add collapse_init() function where it’s
   needed. I’m not sure where to do that. (I’m not a PHP programmer) Can you help
   me?
 * P.S. I’m using [expand] & [/expand] tags
 * [https://wordpress.org/plugins/jquery-collapse-o-matic/](https://wordpress.org/plugins/jquery-collapse-o-matic/)

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/infinite-scroll-expanding-posts/#post-5967337)
 * Well, this is a jetpack issue but we’ll try and guid you.
    According to the JavaScript
   Events section under the infinite-scroll support for jetpack:
 * > Inevitably, there are situations in a theme that require some JavaScript interaction
   > after posts are added. One such example is in a theme that uses jQuery Masonry
   > and needs to trigger that library to position the additional posts. Recognizing
   > this need, we trigger an event after posts are appended. To make use of this
   > event, simply catch the post-load event when it fires on document.body:
 * [http://jetpack.me/support/infinite-scroll/#js-events](http://jetpack.me/support/infinite-scroll/#js-events)
 *     ```
       ( function( $ ) {
           $( document.body ).on( 'post-load', function () {
               // New posts have been added to the page.
           } );
       } )( jQuery );
       ```
   
 * Hmm, now that we look at it… we can easily add this as an option to the plugin.
   
   stay tune for something to test!
 * **UPDATE:**
    Please download and install version 1.6.9b available direct from
   the Plugin Oven at: [http://plugins.twinpictures.de/plugins/collapse-o-matic/](http://plugins.twinpictures.de/plugins/collapse-o-matic/)
 * Do let us know if that works for you.
 *  Thread Starter [awayka](https://wordpress.org/support/users/awayka/)
 * (@awayka)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/infinite-scroll-expanding-posts/#post-5967377)
 * Wow! Big thanks for your fast reply and for release – it works perfectly!
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/infinite-scroll-expanding-posts/#post-5967523)
 * Great! Glad it worked out. Issue marked as resolved. If you are happy with the
   plugin or it’s support, please consider l[eaving a review](https://wordpress.org/support/view/plugin-reviews/jquery-collapse-o-matic).

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

The topic ‘Infinite scroll expanding posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [expand](https://wordpress.org/support/topic-tag/expand/)

 * 3 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/infinite-scroll-expanding-posts/#post-5967523)
 * Status: resolved