Support » Plugin: WooCommerce » Many to many post relationships

  • Hello,
    I’m building a jewellery site using WooCommerce. Here is a link to the preview url:

    The shop has several categories, ie Wedding Rings, Gold jewellery, One Off Pieces, Elegant Textured etc and within each category is a product type, ie Rings, Necklaces, Earrings, etc.
    I want to display the product type as a submenu of the product category but only showing the product type that belongs to that particular category. For example the menu item ‘One Off Pieces’ and the menu item ‘Elegant Textured’ both have a submenu of product type ‘Rings’ but currently they both point to all rings available in the shop but should only show the rings available in that particular category.

    I’ve used the Types plugin to implement a Custom Post Type named ‘Product Type’ and assume it’s a case of inserting PHP code to get it to work but I’m now struggling.

    P.S, I’m fine with CSS and HTML but PHP is new to me (just to let you know what level I’m at)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Roy Ho


    If what I understand is correct, you can simply put the sub-category of your choice into the menu via the menu setting page. Why would you need to create custom post type for this?

    Thanks for pointing me in the right direction splashingpixels. I was making it more complicated than it actually is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Many to many post relationships’ is closed to new replies.