can I list only parent categories through the shortcode [product_categories]? (2 posts)

  1. personaraujo
    Posted 3 years ago #

    Cheers all,

    I'm showing/listing the store categories at my homepage but i want to get rid of child categories at that list. is it possible. is there some shortcode to do that? On what piece of code should I work?



  2. kchayka
    Posted 3 years ago #

    I 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic