• Resolved hallipa

    (@hallipa)


    Hello,

    I am using the following shortcode and the display functions as intended. However, it’s not triggered on scroll. It only works with a button, OR when I click the area at the bottom of the page where the button should be.

    <?php echo do_shortcode('[ajax_load_more post_type="post" scroll="true"]'); ?>

    Any idea what I’m doing wrong?

    Thanks!

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

    (@dcooney)

    Hi @hallipa,
    Without seeing the page it sounds like a scroll_distance issue.

    Try setting scroll_distance="0" in your shortcode.

    <?php echo do_shortcode('[ajax_load_more post_type="post" scroll="true" scroll_distance="0"]'); ?>

    Thread Starter hallipa

    (@hallipa)

    Ah mate, that did it. It must have to do with how I was rendering the rest of the page.

    Thank you very much for a flawless plugin and your quick answer!

    Plugin Author Darren Cooney

    (@dcooney)

    Nice! and thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working on scroll, only on button click’ is closed to new replies.