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
Add to cart
Add to cart
Add to cart
<recent_products columns="3" per_page="3" />
The old recent_products shortcode should be used for WooCommerce version 3.1 or lower.

One response to “Recent products


Nice shortcode

Leave a comment

Your email address will not be published.