FAQ WooHelpDesk Latest Questions

Mark Miller
  • 0
  • 0
What is the Shortcode for Products in WooCommerce?
  • 0
  • 0

In WooCommerce, the most commonly used shortcode to display products is:

[products]

This shortcode can be customized with several attributes to control which products are displayed. Some common attributes include:

  • category: Show products from a specific category. Example: [products category="shirts"]

  • limit: Define the number of products to display. Example: [products limit="12"]

  • columns: Set the number of columns. Example: [products columns="4"]

  • orderby: Sort products by a specific criterion. Example: [products orderby="price"]

This allows you to display products anywhere on your site with flexible options for display and filtering.