I have custom post type ‘Product’,
and 2 custom taxonomies ‘category’ and ‘product status’.
What i am trying to do is list categories in page template and show how many total products in category and how many of them have status ‘available’
Some thing like this
Category | No. of products | Products available
Can any one show how to get posts that are in particular category and have particular status value from other taxonomy…
I’m sure that a custom sql query would work much better but here is an option using the WordPress Tools available