How can I find the total number of posts found in the currently looping post loop?
I assume I need to interact with the WP_Query object, I just can’t find any decent documentation of how to get it out.
How can I find the total number of posts found in the currently looping post loop?
I assume I need to interact with the WP_Query object, I just can’t find any decent documentation of how to get it out.
You must be logged in to post a comment.
According to the documentation, there is:
$found_posts:
The total number of posts found matching the current query parameters