• is there any plugin or function that display products if its only included in multiple categories?

    [products_categories category=”17, 10″ ]

    Displays all products that are in categories 17 and 10,
    What I want to display are products that are both included in the categories.

    eg.
    Product_A = Magnets
    Product_B = Magnets,Easter
    Product_C = Frames
    Product_D = Frames,Easter

    Woocommerce Shortcode
    [products_categories category=”magnets,easter” ]
    Result:
    Product_A
    Product_B
    Product_D

    What I want to achieve
    [custom_products_categories category=”magnets,easter” ]
    Result:
    Product_B

    Thanks

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • I was thinking that WC already has that one objective.

    Try to use the following shortcode.

    [product_category category="magnets,easter" operator="AND"]
Viewing 1 replies (of 1 total)

The topic ‘Custom Product Categories Shortcode’ is closed to new replies.