I registered a custom post type (called product) with a custom taxonomy (calles type, it’s hierarchical). Now I want to display all those product types in a list, just as you would display the post categories.
I’m trying something like this:
wp_list_categories(array(‘taxonomy’ => ‘type’));
This shows exactly what I want, a list of all those types with also the subtypes. Only problem is that the links don’t show up right. They point to the post category page (http://www.test.com/category/).
Anyone any ideas to make a list for the custom taxonomy?
- The topic ‘List categories for custom post type’ is closed to new replies.