Posts continue to display after total amount of existing posts are reached
-
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]
- The topic ‘Posts continue to display after total amount of existing posts are reached’ is closed to new replies.