Building the category.php I'm curious to know if there is a better way to get the count of posts without
wp_query? In the past I've called:
and to build a separator after each post but not the last on the page or last in
get_option('posts_per_page') I've used:
$category = get_queried_object(); $category_total = $category->count;
$category = get_category($id); $count = $category->category_count;
From Count how many posts in category I think requires
wp_query? Is there a better way to get the count of posts in a category for category.php?