Support » Plugin: WooCommerce » Shortcode for parent categories?

Viewing 5 replies - 1 through 5 (of 5 total)
  • these should help I have put text in between the “” which is where you specify the category,

    [product_category category=”enter slug of category you want to show” per_page=”12″ columns=”4″ orderby=”date” order=”desc”]

    there is also a shortcode button when you edit pages for the woocommerce, it is purple coloured button along top bar in the visual edit for the page

    hope this helps you

    I wanted just the parent categories as the default on the shop page and figured this out after some hunt and peck/trial and error in the WooCommerce Settings->Catalog

    Check the first 3 boxes under Show subcategories:
    Show on category pages
    Show on the shop page
    hide products

    That second one is completely non-intuitive and sounds like a bug, but it did what I wanted.

    Thank god someone has had similar troubles. Do any of you know how to show certain categories on the home page,

    I tried this

    but it only shows products in the categories rather than the category itself.

    Is there a shortcode for this.

    Any help would be greatly appreciated


    [product_category category=”category slug”]

    Is this work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode for parent categories?’ is closed to new replies.