To display featured products using a WooCommerce shortcode, you can use the `[featured_products]` shortcode. Here are the key details:
- The `[featured_products]` shortcode allows you to list featured products separately from the rest of your store[1][3].
- You can customize the shortcode with attributes to control how the products are displayed, such as:
- `per_page` - The number of products to show per page (default is 12)[3]
- `columns` - The number of columns to display the products in (default is 4)[3]
- `orderby` - The order to sort the products, e.g. `orderby="date"` to sort by date added[3]
- `order` - The order direction, e.g. `order="desc"` for descending order[3]
- For example, to display 6 featured products in 3 columns sorted by date in descending order:
[featured_products per_page="6" columns="3" orderby="date" order="desc"]
- Featured products are marked with a blue star icon on the main Products page in the WooCommerce admin[3].
- You can add the `[featured_products]` shortcode to any page or post in WordPress where you want to display the featured products[1][3].
So in summary, the `[featured_products]` shortcode provides an easy way to highlight certain products on your WooCommerce store by listing them separately from the main shop. You can customize the display with shortcode attributes.
Citations:[1] https://woocommerce.com/document/woocommerce-shortcodes/products/
[2] https://woocommerce.com/document/woocommerce-shortcodes/
[3] https://barn2.com/blog/woocommerce-shortcodes/
[4] https://avada.io/woocommerce/docs/featured-product-shortcode-guide.html