• Resolved jbslettebak

    (@jbslettebak)


    I have the Ajax Load More plugin all set up, and it is only somewhat working. On the page I’m referencing, there are 49 total posts/products in this custom post type called “Custom Solutions”. I currently have this page to display 16 posts on page load, and then 16 posts for each subsequent click of the “View More” button that I have set up. I have the button set to disappear after it is clicked for the third time.

    My issue is that at the time that the button will be clicked the third time, there are currently 48 of 49 posts/products being displayed. With that third click, I would like the button to only make the one last post appear. However, it instead displays another 16 posts, with 15 of them being duplicates.

    How can I make it so that only the 49 existing posts will display, rather than having duplicate posts show until I’ve set the button to disappear?

    Any help would be much appreciated, thank you.

    The page I need help with: [log in to see the link]

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

    (@dcooney)

    Hi @jbslettebak
    It is returning the correct amount of posts.
    The issue is you have 16 posts loaded before Ajax Load More so you need to offset the Ajax loading.

    Either add offset="16" to your shortcode or use the Preloaded add-on.

    Hope that helps.

    Thread Starter jbslettebak

    (@jbslettebak)

    Thank you so much, it worked perfectly. I did not know about the “offset” parameter but that was exactly what I needed. Also, thanks very much for the quick response to my question, I really appreciate it. Great support!

    Plugin Author Darren Cooney

    (@dcooney)

    Excellent! You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Posts continue to display after total amount of existing posts are reached’ is closed to new replies.