number of posts with “Load More”

I am using the plugin Ajax Load More to query posts and have a filter system to thin out the posts in the loop. I am trying to add a counter that will say “Your search returned X amount of posts” Where X is the number of posts displayed/matching the current criteria.

I was able to grab the total number of posts, but wasn’t able to grab the current number of posts being displayed via Ajax Load More. Wasn’t able to find much when I was searching for it.

Anyone have any idea how to display the number of current posts displayed using Ajax Load More and not the number of every post?

Read more here:: number of posts with “Load More”

Leave a Reply

Your email address will not be published. Required fields are marked *