I amusing wordpress and have setup a custom post type (called products & custom taxonomy called product_category) and I want to do the follow
I will have a page called catalog and want to display all the categories/sub categories and products under the sub categories on one page.
However am unsure on the code to to it.
Get all categories and echo the title, for each parent category with children echo the sub categories and then products else just echo the parent category and the products.
Category 1 (echo parent stuff) Sub category 1 (echo Sub category stuff) Post 1 (echo post stuff) Post 2 Sub category 2 Post 1 Post 2
Category 2 Sub category 1 Post 1 Post 2
Category 3 Sub category 1 Post 1 Post 2