Site icon Hip-Hop Website Design and Development

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?