• Resolved chainznanz

    (@sunitkaul)


    Hey Darren,

    I’m having a bit of difficulty in identifying where to put the shortcode on my site: https://toptrending.in/. It’s a blog Homepage, and I want the next 12 posts to appear once the reader scrolls to the end of the page they are one .

    I know I have to add php code, since there’s no way to add the shortcode.
    <?php echo do_shortcode(‘[ajax_load_more post_type=”post” posts_per_page=”12″]’); ?>

    But I’m not sure where to put the code exactly. Can you please help?

    Thanks

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

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

    (@dcooney)

    Hi,
    You would put the code exactly where you want the posts to load. So in your case, inside the <div class="posts-wrap clearfix"> <!-- Ajax posts here --> </div> of your homepage/frontpage template

    Does that help?

    Thread Starter chainznanz

    (@sunitkaul)

    Your solution worked, Darren ??

    Unfortunately, the design of the loaded posts doesn’t match with the original ones. And I lack the skills to customise it myself.

    But thanks for your help, really appreciate it.

    Plugin Author Darren Cooney

    (@dcooney)

    That would be an easy fix.
    Email me at darren.cooney [at] gmail [dot] com if you want help.

    cheers,
    -d

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Loading the next page of posts’ is closed to new replies.