Fastest way of counting posts of a custom post type in a specific taxonomy term?
Terms generally should have a count parameter that you can use. I’m not sure if this is accurate across multiple post types though. This may not be the fastest solution but one option could be the additional parameters for WP_Query to both reduce the number of queries and the returned values. 10up has a good … Read more