I have a problem (of course) and I'll go straight to the point: I need to list all the custom categories and count the posts for each category eg.
- Category 1 (xx posts)
- Category 2 (yy posts)
I tried a couple of queries but with no luck.
All these categories are stored in the wp_terms table, how do I list them since I've seen that there isn't, apparently, any elations between wp_terms and the posts?
Worthless to say that i've tried wp_list_categories but it shows just "Uncategorized" since the website I'm using, uses custom post rather than "default" categores. Thanks in advance!