Products

WooCommerce [products] shortcode is a very robust shortcode which replaces many of the earlier WC shortcodes such as featured products, sale products, best selling products, recent products, products by attribute and top rated products. In turn, this shortcode can largely be replaced by new WooCommerce blocks as well.

[product] and [products] shortcode examples:

Single product by ID
Sale!
$3.00 $2.00
Add to cart

<product id="99">
Single product by SKU
Sale!
$20.00 $18.00
Add to cart

<product sku="Logo20x2red" columns="3">
Notes
Reducing the column count will increase the width of the product card.
Products by IDs
$20.00
Add to cart
$20.00
Add to cart
$35.00
Add to cart
Sale!
$3.00 $2.00
Add to cart

<products ids="99, 31, 34, 47">
Products by SKUs
$35.00
Add to cart
$20.00
Select options
$20.00
Add to cart
Sale!
$20.00 $18.00
Add to cart

<products skus="prem, Logo20x2red, ship-it, patient-ninja" orderby="date" order="desc">

Leave a comment

Your email address will not be published. Required fields are marked *