• Resolved rocked18

    (@rocked18)


    Hi,

    Great plug in!

    I have got this up and running but it seems to load the first set of 5 posts on page load already.

    The scroll works great for subsequent loads but the first 5 is always already there (below my initial ones). I have offset by 5 and also played with the scroll distance param with no luck.

    <?php echo do_shortcode('[ajax_load_more post_type="post" button_label="Load Older Posts" offset="5" scroll_distance="100"]'); ?>

    here is the link to that page.
    https://bit.ly/1NKRhK1

    Any help?

    Thanks!

    https://www.ads-software.com/plugins/ajax-load-more/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi, sorry to hear you are having issues…

    Im not seeing repeating posts, did you solve this issue?

    Thread Starter rocked18

    (@rocked18)

    Hi sorry,

    I wasn’t too clear, its not repeat posts its just loading the first additional 5 posts on page load not scroll.

    So at the moment its doing this on page load
    – 5 posts – coded in the page template
    – 5 plug in created posts
    – load more button activated on scroll to load next 5

    I want it to be
    – 5 posts – coded in the page template
    – load more button activated on scroll to load next 5

    The issue is that its already loading the 5 posts that the plugin generates on page load – without the user scrolling down the page.

    Thanks

    Plugin Author Darren Cooney

    (@dcooney)

    Oh got you.
    Just looking at things i’m not sure this is possible.

    So you want to pause loading of posts until the user scroll but the way it currently works is if you set pause=”true” then scrolling is disabled.

    I might have to look into updating this functionality.

    Thread Starter rocked18

    (@rocked18)

    Yep thats it, otherwise I’ll have to strip out the code that loads the first 5 posts in the page template and just use the plug in to load all posts.

    Having the option you suggest above would be great, save people stripping out code from page templates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Already loads 5 posts – no scroll’ is closed to new replies.