• Resolved Clayton Chase

    (@claytonchase)


    I know WooCommerce has a shortcode to display products but if I can I’d like to use this plugin. Is there a way to display products of a certain category? I’ve tried the category_id and category parameters but they don’t seem to work with products.

    Thanks,
    Clayton

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    The category parameters only work with the “category” taxonomy on posts.

    WooCommerce uses a different taxonomy called “product_cat” applied to the “product” post type.

    To show a listing of all WooCommerce items (not limited by category) use this:

    [display-posts post_type=”product”]

    To limit it to posts in the “abc” product category, use this:

    [display-posts post_type=”product” taxonomy=”product_cat” tax_term=”abc”]

    Thread Starter Clayton Chase

    (@claytonchase)

    Perfect! Thank you kindly!

    save for later (for my reference)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display WooCommerce Products By Category’ is closed to new replies.