Add “showing posts x to x of y” in custom post type paginated loop
All query objects have a few built in vars that can help you display this. Assuming your custom query object is $query: The total number of posts across all pages is $query->found_posts The total number of posts for the current page is $query->post_count The current page number is $query->query_vars[‘paged’] The number of posts per page … Read more