WP_Query has the following
properties you might find handy:
$wp_query->current_post
– Index of the post currently being displayed.
$wp_query->found_posts
– The total number of posts found matching the current query parameters
WP_Query has the following
properties you might find handy:
$wp_query->current_post
– Index of the post currently being displayed.
$wp_query->found_posts
– The total number of posts found matching the current query parameters