• Resolved andy264

    (@andy264)


    Hello,

    I hope you all are well, i would like your help with one thing please.

    When i am in a category, i would like a list with subcategories of that parent category i am browsing to display on top of the page. Would that be possible?

    I appreciate your help. Thank you very much.

    • This topic was modified 2 years, 2 months ago by andy264.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mouli a11n

    (@mouli)

    @andy264
    If you go to Appearance ? Customize ? WooCommerce ? Product catalog, you will see the option Category display.
    If you set that to Show sub categories it will list the parent category’s sub categories:


    Link to image: https://d.pr/i/1FbLNM

    There is also an option to show the products with the sub categories.

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

    Thread Starter andy264

    (@andy264)

    Thank you for your answer. I tried that but it does not do anything, is there another solution to do it manually via functions.php perhaps?

    Plugin Support mouli a11n

    (@mouli)

    @andy264
    You could try using one of the WooCommerce shortcodes as discussed here:
    https://woocommerce.com/document/woocommerce-shortcodes/#product-category
    You can display all the sub categories by setting the parent attribute to the ID of the parent category.
    It might look something like this:

    [product_category parent="23"]

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show subcategories on parent category page’ is closed to new replies.