Custom Taxonomies (hierarchical) – Is What I'm Trying Possible? Best Approach?
-
Okay… so I finally have a project where I’ve been able to dig my hands into custom post types and custom taxonomies. Love it! But… I’m not sure if what I’m trying to accomplish is possible. Here’s what it is in a nutshell: I’d like to create a product listing area. I have a custom post type of “Products”, and a custom taxonomy, “Product Categories”. Where I’m “stuck” is that the product categories have children. For instance:
Product Category
– Product Sub-category
– Product ListingsTo add to this, I’m using a theme/framework that doesn’t use the standard setup for templates. So, I’m doing the code in functions.php. Currently I have the product listing page, showing all terms in the “Product Category” taxonomy. My goal is to have it function this way:
Main page: Shows only parent terms. Contains link to…
Sub page: Shows all subterms of selected parent term. When you click on the individual title, it takes you to…
Product listing page: Shows all products listed under the Product Category->Product Sub Category.Any input/suggestions would be most welcome! Thanks for your time!
- The topic ‘Custom Taxonomies (hierarchical) – Is What I'm Trying Possible? Best Approach?’ is closed to new replies.