Is it possible to create a special wp query that looks to see how many posts exist in a specific taxonomy, or taxonomy term, and executes a particular loop depending on the volume of posts?
My idea behind this is -
Id like to be able to show particular CPT content in a different styled format depending on how many of those posts exist.
Lets say the taxonomy "product categories" only contains about 2 posts listed with child terms that exist in that taxonomy rather then something like 20...
Well what Id like to do is list those products in a larger style via CSS instead of having to default on the more consolidated styling for when their are a larger volume of products.
Can this be done, and if so how?