Title: Slideshow breaks when using Infinite Scroll
Last modified: August 20, 2016

---

# Slideshow breaks when using Infinite Scroll

 *  [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/)
 * **First, I love the plugin. **
 * I’m using it on a page to load a portfolio. However, when the plugin starts loading
   more projects, the slideshow breaks.
 * It seems the jQuery doesn’t get passed along anymore. Does anybody have an idea
   how I could solve this?
 * Any help would be great!
 * This is the url to the page:
    [http://www.wijzijnblits.nl/category/sterkemerken/](http://www.wijzijnblits.nl/category/sterkemerken/)
 * [http://wordpress.org/extend/plugins/infinite-scroll/](http://wordpress.org/extend/plugins/infinite-scroll/)

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

 *  Thread Starter [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300890)
 * I’m still hoping for an answer… anybody?
 * I would really appreciate the help!
 *  Thread Starter [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300923)
 * To clear things up a bit, this is my loop:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * The javascript used above is only displayed with the first posts, after posts
   are being loaded the javascript magically disappears.
 *  Thread Starter [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300924)
 * And here is the Pastebin link:
    [http://pastebin.com/Uczxgnyr](http://pastebin.com/Uczxgnyr)
 * Sorry for the spam, I cant edit my previous post.
 *  Plugin Contributor [beaver6813](https://wordpress.org/support/users/beaver6813/)
 * (@beaver6813)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300928)
 * Sorry for the delay, been real busy.
    Just went to look at the site but it looks
   like you’ve been tinkering, I get the error:
 *     ```
       $("#mygallery3085 a.next").live is not a function
       http://www.wijzijnblits.nl/category/sterkemerken/
       Line 110
       ```
   
 * (hint, try jQuery(“#mygallery************* )
 * Looks like you’re along the right lines, you’ll either need to use the live hook(
   so new posts that are loaded will be binded to). Or you can use the “javascript
   callback” option in infinite-scroll to execute code that will enable the slideshow
   on all the newly loaded posts.
 * I’d probably continue trying to use jQuery’s live function, cleanest way to do
   it. Let me know how it goes or if you need any assistance.
 * p.s. Awesome looking site!
 *  Thread Starter [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300932)
 * Thanks for your reply.
 * Could you post an example of the live function? I’m not really familiair with
   it. I’ve been trying, but I can’t make it work.
 * I’ve deleted my “tinkering”, so that you can see the first 3 sliders work.
 * Thanks for the compliment btw!
 *  Plugin Contributor [beaver6813](https://wordpress.org/support/users/beaver6813/)
 * (@beaver6813)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300966)
 * Do you still need help with this? (Sorry for the delay!)
 *  Thread Starter [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300967)
 * Yes, I still need help.
 * Don’t be sorry, it’s great you even take the time to try and help me!
 *  Thread Starter [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300968)
 * Sometimes, when you think you’re going the wrong way, it turns out you aren’t.
   I used a complete different slideshow script and it saved my day. Finally!
 * After that I used the callback function in the plugin to make sure it worked 
   on all sliders.
 * Thanks for your support beaver6813!

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

The topic ‘Slideshow breaks when using Infinite Scroll’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/slideshow-breaks-when-using-infinite-scroll/#post-2300968)
 * Status: not resolved