Shortcode for parent categories? (6 posts)

  1. yoshituk
    Posted 3 years ago #

    Hi there,

    I know there is a shortcode ([product_categories number=""]) which is to show all your categories. But Is there a solution to just show all the parent categories? Or how do I specify manually which categories I want to show by slug..

    Hope someone knows..



  2. scruffy1
    Posted 3 years ago #

    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

  3. kchayka
    Posted 3 years ago #

    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.

  4. jamiesbw
    Posted 3 years ago #

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

    I tried this http://docs.woothemes.com/document/woocommerce-shortcodes/

    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

  5. jamiesbw
    Posted 3 years ago #


  6. elvinlee
    Posted 3 years ago #

    [product_category category="category slug"]

    Is this work?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic