Recent products

For displaying the most recently added products with WooCommere the [products orderby="date" order="DESC"] or [recent_products] shortcodes can be used. If your WooCommerce version is lower than 3.2 then you should use the latter.

The appearance of the displayed products depends on your active theme, the following examples are using Chap theme, but the shortcodes work with any theme as long as you’re using WooCommerce.

Displaying WooCommerce recent products using the products shortcode
<products columns="4" per_page="4" orderby="date" order="DESC" />
WooCommerce recent products shortcode
$782,000,000.00
Add to cart
Sale!
$99.00 $82.00
Add to cart
$99.00
Add to cart
<recent_products columns="3" per_page="3" />
Notes
The old recent_products shortcode should be used for WooCommerce version 3.1 or lower.

One response to “Recent products

ajay

Nice shortcode

Leave a comment

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