• 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 Listings

    To 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can WordPress do it? Yes
    Is it out-of-the-box? No

    WordPress doesn’t provide a standard page that lists all of the terms at the top level, or those with a particular parent. So, for the “main page” and “sub page” in your example you’ll have to write some code to do that, and then either add it to a WordPress page as a custom page template, or generate the contents via a shortcode etc.

    The final example you quoted, the “product listing page” is available by default in recent WordPress versions, it’s just a standard taxonomy archive – ie /taxonomy-slug/term-slug/

    However since you’re doing “products” – why not use one of the many free e-commerce plugins out there: wp e-commerce, marketpress, jigoshop to name a few …

    Thread Starter Kate

    (@katendarcy)

    Hey Lee,
    Thanks so much for the reply. I understand it’s not “out of the box”… so I’m trying to figure out the best way to do it ?? There’s a couple reasons we were staying away from a plugin, the first of which is the products aren’t actually being sold. But, I may end up going that route.

    Thanks!
    Kate

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Taxonomies (hierarchical) – Is What I'm Trying Possible? Best Approach?’ is closed to new replies.