WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce multiple categories shortcode (3 posts)

  1. unikumix
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to display multiple categories on my Woocommerce Products page.

    I have Clothes -> Male, Female categories
    and Accesories category.

    When user click Click Clothes i wan't to show only Male & Female stuff.
    Not Male & Female and Accessories.

    [product_category category="female" per_page="12" columns="4" orderby="date" order="desc"]

    With this shortcode i can show "female" category products, but i need
    to add male category too.

    I don't know the separator if there is any.

    Any ideas?

  2. rey8a
    Member
    Posted 7 months ago #

    Use a comma to separate categories.
    See example: In this example the categories are "T-Shirts,Hoodie’s, Misc,Sweatshirts"
    [product_category category="T-Shirts,Hoodie’s, Misc,Sweatshirts"]

  3. zdurst
    Member
    Posted 6 months ago #

    That doesn't work!

Topic Closed

This topic has been closed to new replies.

About this Topic