In simple terms, a short code in WordPress is a small piece of code that you can insert into posts, pages, or widgets to execute a specific function. WooCommerce provides several shortcodes to help you display your products in various ways, and one of the most useful is the Featured Products Shortcode. Using the WooCommerce Featured Products Shortcode, you can easily showcase selected products anywhere on your site, whether it’s on your homepage, a blog post, or a dedicated landing page.
Why Use Featured Products?
Before we get into the nitty-gritty, let’s talk about why you might want to use featured products in the first place. Here are a few reasons:
- Highlight Bestsellers: Show off your most popular items to boost sales.
- Promote New Arrivals: Make sure customers notice the latest additions to your store.
- Seasonal Specials: Perfect for holiday or seasonal promotions.
- Clearance Items: Move old stock quickly by highlighting it.
How to Mark a Product as Featured
Before using the shortcode, mark the products you want to feature. Here’s how:
- Go to Your Dashboard: Log into your WordPress admin panel.
- Navigate to Products: Click on ‘Products’ in the left-hand menu.
- Select the Product: Find the product you want to feature and click on it to edit.
- Mark as Featured: On the right side, in the ‘Product Data’ box, check the ‘Featured’ checkbox.
- Update Product: Click ‘Update’ to save your changes.
Now that you have your featured products, let’s display them using the shortcode.
Using the WooCommerce Featured Products Shortcode
The WooCommerce Featured Products Shortcode is quite flexible and can be customized to fit your needs. The basic shortcode looks like this:
[products limit=”4″ columns=”4″ visibility=”featured”]
1. Breaking Down the Shortcode- WooCommerce Featured Products Shortcode
- [products]: This is the base shortcode for displaying products.
- limit=”4″: This sets the number of products to display. In this example, it will show four products.
- columns=”4″: This sets the number of columns in the product grid. Here, the products will be displayed in four columns.
- visibility=”featured”: This ensures that only featured products are displayed.
2. Customizing the Shortcode
The real power of shortcodes comes from their customization options. Let’s explore a few common modifications:
-
Changing the Number of Products
Want to display more or fewer products? Simply change the limit:
[products limit=”8″ columns=”4″ visibility=”featured”]
This shortcode will display eight featured products in four columns.
-
Adjusting the Number of Columns
Maybe you prefer a different layout? Adjust the columns like this:
[products limit=”8″ columns=”2″ visibility=”featured”]
This will display eight featured products in two columns, making the images larger.
-
Adding Pagination
If you have a lot of featured products, you might want to add pagination:
[products limit=”8″ columns=”4″ paginate=”true” visibility=”featured”]
This will create a paginated list of your featured products, showing eight per page.
-
Advanced Customization
WooCommerce shortcodes can be further customized with additional attributes. Here are a few advanced options:
-
Sorting Products
Control the order in which products are displayed:
[products limit=”4″ columns=”4″ orderby=”date” order=”DESC” visibility=”featured”]
This sorts products by their creation date, with the newest first.
-
Filtering by Category
Want to feature products from a specific category? Add a category filter:
[products limit=”4″ columns=”4″ category=”clothing” visibility=”featured”]
This displays featured products only from the ‘clothing’ category.
Also Read: Best WordPress Page Builders For Building A Great Blog Website
Where to Use the ShortCode- WooCommerce Featured Products Shortcode
You can use the WooCommerce Featured Products Shortcode in various places on your website:
On the Homepage
Displaying featured products on your homepage can immediately draw visitors’ attention to your top items.
- Edit Homepage: Go to ‘Pages’ in your WordPress admin panel and edit your homepage.
- Insert Shortcode: Add the shortcode in the desired section using the Gutenberg block or classic editor.
- Update Page: Save your changes and preview your homepage.
In a Blog Post
Integrating products into your blog posts can increase engagement and drive sales from your content.
- Write a Blog Post: Create or edit a blog post where you want to display featured products.
- Insert Shortcode: Add the shortcode in the post content.
- Publish: Save or publish your post.
On a Dedicated Landing Page
Creating a landing page for promotions or specific product collections can boost conversions.
- Create a New Page: Go to ‘Pages’ and click ‘Add New.’
- Design the Page: Use the block editor to design your landing page.
- Insert Shortcode: Add the shortcode where you want the featured products to appear.
- Publish: Save and publish your page.
Best Practices for Using Featured Products
1. Keep It Fresh- WooCommerce Featured Products Shortcode
Regularly update your featured products to keep your site interesting. Rotate products based on seasons, promotions, or inventory changes.
2. Use High-Quality Images
Ensure that your featured products have high-quality images. Great visuals can significantly impact customer decisions.
3. Highlight with Design
Use design elements like borders, backgrounds, or banners to highlight your featured products. Make them stand out on the page.
4. Promote Special Offers- WooCommerce Featured Products Shortcode
If you have discounts or special offers, make sure to highlight them in your featured products section. Use badges or text overlays to draw attention.
Also Read: 7 Best WooCommerce Product Table Plugins
WooCommerce Featured Products Shortcode
The WooCommerce Featured Products Shortcode is a powerful tool for any e-commerce store owner. It allows you to easily showcase your best products, drive sales, and enhance the shopping experience. By understanding how to use and customize this shortcode, you can create engaging and dynamic product displays anywhere on your site.
Remember, the key to successful e-commerce is not just having great products but also presenting them in a way that captures your customers’ attention. With the tips and examples provided, you’re well on your way to making the most out of your WooCommerce store. Happy selling!
If you have any questions or need further assistance, feel free to leave a comment below. We’d love to hear how you’re using featured products to boost your sales!
Interesting Read:
5 Best WordPress Pricing Tables Plugins