I would like to get all the available taxonomy for each (custom) post type.
My aim is to list for each post type, each taxonomy like category, tag and for each of these taxonomy to get all register terms (and ids) with the number of items for each terms,…
I would like to output something like that:
post
Categories
cat1 (2)
cat2 (1)
Tags
Tag1 (5)
Tag2 (3)
portfolio
Attributes
att1 (2)
att2 (1)
att3 (5)
att4 (9)
Categories
cat1 (2)
cat2 (4)
cat2 (1)
Tags
Tag1 (5)
Tag2 (3)
....
I don’t now what is the right and best way to do that. It’s a little bit more complex than I expected and I didn’t find a solution.