Title: posts aren&#8217;t loaded on scroll
Last modified: February 23, 2018

---

# posts aren’t loaded on scroll

 *  [allonestring](https://wordpress.org/support/users/allonestring/)
 * (@allonestring)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/)
 * Hi
    I’ve managed to beat most of my gremlins by scouring the forum, and barring
   a few css tweaks have it beautifully loading both posts and a sample cpt into
   a masonry layout [*] but can’t get it to load new posts on scroll. My shortcode
   looks like this:
 * [ajax_load_more id=”5737532504″ container_type=”div” post_type=”post, handout-
   grid-item” posts_per_page=”20″ scroll=”true” scroll_distance=”0″ scroll_container
   =”.blog-grid” transition=”masonry” masonry_selector=”.blog-grid-item” masonry_animation
   =”slide-up”]
 * Could you point me in the right direction please?
    Thanks
 * * insert gushing thanks for a fab plugin here ☺
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fposts-arent-loaded-on-scroll%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10008752)
 * Hi [@allonestring](https://wordpress.org/support/users/allonestring/),
    Strange!
   I see `scroll_distance="0"` set in your shortcode so that should work.
 * Can you try setting `scroll_distance="-20"` to see if it triggers before it comes
   into view?
 * Cheers,
 *  Thread Starter [allonestring](https://wordpress.org/support/users/allonestring/)
 * (@allonestring)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10008835)
 * Hi
    Nope, I’m afraid that that’s made no difference – still no load on scroll.[*]
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10008864)
 * Well i’m stumped. I tried a bunch of fixes in the browser console.
    All I can
   think of is the Flickity JS errors are causing problems.
 * One other thing we could try is turning off Masonry to see if thats the root 
   cause.
 *  Thread Starter [allonestring](https://wordpress.org/support/users/allonestring/)
 * (@allonestring)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10008950)
 * Thanks. I’ve tried removing the flickety script – no luck – but will try removing
   all the js and see what happens then …
    Will let you know [*]
 *  Thread Starter [allonestring](https://wordpress.org/support/users/allonestring/)
 * (@allonestring)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10016164)
 * Hi
    I’ve disabled all plug-ins (except yours and acf), removed all js and set
   the layout to !masonry – with no luck. I’ll work around for the mo, but if you
   get a flash of inspiration please let me know! Thanks Sal
 *  [rospo85](https://wordpress.org/support/users/rospo85/)
 * (@rospo85)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10025013)
 * Hi!
    I’ve the same problem. My settings are [ajax_load_more id=”ga-hp” container_type
   =”div” css_classes=”gaBlogList row collapse” post_type=”post” posts_per_page=”
   2″ scroll=”true” scroll_distance=”10″ scroll_container=”gaBlogWrapper” transition
   =”none” transition_container=”false” progress_bar=”true” progress_bar_color=”
   FF00FF” images_loaded=”true” button_label=”Older”]
 * Any idea or news about it?
    Thanks!
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10025149)
 * No news, I can’t replicate the issue anywhere else.
    I’ll need to see a link 
   to your issue [@rospo85](https://wordpress.org/support/users/rospo85/)
 * Thanks
 *  [rospo85](https://wordpress.org/support/users/rospo85/)
 * (@rospo85)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10027102)
 * hi [@dcooney](https://wordpress.org/support/users/dcooney/)! Thanks, this morning
   i’ve solved removing the **scroll_container** param 🙂
    Thanks again!
 *  Thread Starter [allonestring](https://wordpress.org/support/users/allonestring/)
 * (@allonestring)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10028561)
 * Hi
    I too have removed the scroll_container parameter and now too have auto-scrolling.
   Thanks [@rospo85](https://wordpress.org/support/users/rospo85/)! [*]
 * masonry isn’t packing correctly, though; would you like a separate thread for
   that?
    Thanks
 *  [teezi](https://wordpress.org/support/users/teezi/)
 * (@teezi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10039787)
 * Same issue – posts weren’t loading on scroll. Removing the **scroll_container**
   parameter fixed this for me too.

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

The topic ‘posts aren’t loaded on scroll’ 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/)

## Tags

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

 * 10 replies
 * 4 participants
 * Last reply from: [teezi](https://wordpress.org/support/users/teezi/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/posts-arent-loaded-on-scroll/#post-10039787)
 * Status: not resolved