WooCommerce is an extendable eCommerce plugin for WordPress that helps you turn your WordPress sites into a shopping store and start sell anything quickly. If you want to promote specific hot products, you can set featured products with WooCommerce then display the featured products in any page or post by inserting the compact shortcodes.
How to Display Featured Products in WooCommerce?
WooCommerce is a powerful WordPress ecommerce plugin. It has the ability to set any products as featured products and you can recommend them site wide by using the shortcode. There are two easy steps to achieve that.
Step 1. Set Featured Products in WooCommerce
Log on your WordPress dashboard with the credentials, then browse to the Products section, click on Products to open the products list. There will be empty stars with light blue border besides each product. If you click on the star icon, it will become a black star which means the selected product has been featured in Woocommerce. Repeat the step to set featured products you like.
Step 2. Display Featured Products with WooCommerce Shortcode
This is the shortcode to display featured products in WooCommerce:
[featured_products per_page="12" columns="4"]
The above code will output the featured products in a grid, 4 columns in a page, maximum 12 products. You can customize this shortcode to suit your website design and layout. For example, you can specify the column layout, you change it from 4 column to 3,2 or only 1 column. 4 is the maximum. You can also specify how many featured products will show in the short code. To display 3 products in 3 column in one page, use below WooCommerce shortcode:
[featured_products per_page="3" columns="3"]
Additionally you can add the order by format and type. For example, to display the recent featured products in a WordPress page or post, you can insert a shortcode like this:
[featured_products per_page="8" columns="4" orderby="date" order="desc"]
The above code will display most recent eight featured products, order by descending date.