WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How do you show sub categories? (4 posts)

  1. DylanR
    Member
    Posted 1 year ago #

    The shortcode for my store page is

    [product_categories number="12" parent="0"]

    This shows all categories, but the WooCommerce documentation fails to tell you what to put in if you WANT to show a child category.

    Anyone have any idea?
    Entering the parent category name / slug under 'parent' doesn't work, tried a few other things but to no avail.

    Would greatly appreciate any help

    http://wordpress.org/extend/plugins/woocommerce/

  2. DylanR
    Member
    Posted 12 months ago #

    Bump.

    I know I'm not supposed to do that, but 1 week later I'm still unfortunately horribly stuck.

    Does anyone have any clue at all if this is even possible?

    I can't tell if the documentation is lacking or if it's just impossible to only show subcategories

  3. Roy Ho
    Member
    Posted 12 months ago #

    If the provided shortcode doesn't work, build your own loop. Use WP_Query

  4. DylanR
    Member
    Posted 12 months ago #

    The shortcode works, the problem is that the use for showing subcategories is not documented, so as far as I know anyone who tries it is just left to take shots in the dark

    I could be horribly wrong, and I'm hoping I am, since WooCommerce is a fantastic plugin and it would be a shame if it were ruined by shoddy documentation

    I'll give building my own loop a try though, cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic