I’m currently working on a WordPress-project which has to display all the categories, subcategories and posts within these subcategories of a custom post type & taxonomy.
I should become something like this:
At this moment the code returns a list of all the categories and subcategories
in the taxonomy between the h3-tags. Only the parent categories should be displayed here.