Complete WooCommerce Shortcodes Guide (2025)

Introduction

WooCommerce is powerful out of the box, but its true strength lies in shortcodes. WooCommerce shortcodes allow you to display products, categories, carts, checkout pages, and customer account sections anywhere on your website—without writing custom PHP or complex templates.

Whether you are a store owner, WordPress developer, or digital marketer, understanding WooCommerce shortcodes helps you:

  • Create high-converting landing pages

  • Customize shop layouts without coding

  • Build smoother customer journeys

  • Improve SEO and user experience

This guide explains all 22 essential WooCommerce shortcodes, written in simple human language, along with real-world page layout ideas you can actually use.


Table of Contents

  1. Display Products (General)

  2. Recent Products

  3. Featured Products

  4. Sale Products

  5. Best Selling Products

  6. Top Rated Products

  7. Products by Category

  8. Products by Tag

  9. Single Product Page

  10. Add to Cart Button

  11. Add to Cart URL

  12. Product Categories Grid

  13. Single Product Category

  14. Cart Page

  15. Checkout Page

  16. My Account Page

  17. Order Tracking

  18. Customer Login & Registration

  19. Order Thank You Page

  20. Checkout Payment Section

  21. Product Search

  22. Legacy / Utility Product Shortcodes


1. Display Products (General)

Shortcode

[products]

What it does

Displays a customizable grid of products anywhere on your site.

SEO & Conversion Use

This shortcode is best for homepages, category highlights, and internal linking.

Real-World Layout Example

Homepage Layout

Hero Banner
↓
[products limit="8" columns="4"]
↓
Featured Categories
↓
Testimonials

2. Recent Products

Shortcode

[recent_products]

What it does

Shows the latest products added to your store automatically.

Real-World Layout Example

New Arrivals Page

Page Title: New Arrivals
↓
[recent_products limit="12" columns="4"]

3. Featured Products

Shortcode

[featured_products]

What it does

Displays products manually marked as “Featured”.

Real-World Layout Example

Homepage Highlight Section

Why Choose Us
↓
[featured_products limit="4" columns="4"]
↓
Shop Now CTA

4. Sale Products

Shortcode

[sale_products]

What it does

Shows products that currently have discounts.

Real-World Layout Example

Festive Sale Landing Page

Festival Banner
↓
[sale_products limit="9" columns="3"]
↓
Limited Time Offer Text

5. Best Selling Products

Shortcode

[best_selling_products]

What it does

Displays products with the highest sales.

Real-World Layout Example

Trust-Building Section

Why Customers Love Us
↓
[best_selling_products limit="6" columns="3"]

6. Top Rated Products

Shortcode

[top_rated_products]

What it does

Shows products with the highest customer ratings.

Real-World Layout Example

Customer Favorites Page

Top Rated by Customers
↓
[top_rated_products limit="6"]

7. Products by Category

Shortcode

[product_category category="clothing"]

What it does

Displays products from one specific category.

Real-World Layout Example

Category Landing Page

Category Banner
↓
[product_category category="clothing" columns="4"]

8. Products by Tag

Shortcode

[products tag="summer"]

What it does

Displays products grouped by tags.

Real-World Layout Example

Campaign Page

Summer Collection
↓
[products tag="summer" limit="12"]

9. Single Product Page

Shortcode

[product_page id="99"]

What it does

Displays a full product page anywhere.

Real-World Layout Example

One-Product Funnel

Problem Statement
↓
Benefits
↓
[product_page id="99"]
↓
FAQs
↓
Guarantee Section

10. Add to Cart Button

Shortcode

[add_to_cart id="99"]

What it does

Shows a direct Add to Cart button.

Real-World Layout Example

Blog Post CTA

Product Review Content
↓
[add_to_cart id="99" show_price="true"]

11. Add to Cart URL

Shortcode

[add_to_cart_url id="99"]

What it does

Generates a direct add-to-cart link.

Real-World Layout Example

Used in:

  • Email campaigns

  • WhatsApp promotions

  • Banner buttons


12. Product Categories Grid

Shortcode

[product_categories]

What it does

Displays categories instead of products.

Real-World Layout Example

Store Entry Page

Shop by Category
↓
[product_categories columns="3"]

13. Single Product Category

Shortcode

[product_category category="electronics"]

What it does

Focuses on one category only.

Real-World Layout Example

SEO Category Page

Category Intro Text
↓
[product_category category="electronics"]
↓
FAQ Section

14. Cart Page

Shortcode

[woocommerce_cart]

Real-World Layout Example

Standard WooCommerce Cart Page
(Required for store functionality)


15. Checkout Page

Shortcode

[woocommerce_checkout]

Real-World Layout Example

Minimal Checkout Page

Trust Badges
↓
[woocommerce_checkout]

16. My Account Page

Shortcode

[woocommerce_my_account]

Real-World Layout Example

Customer Dashboard

Welcome Message
↓
[woocommerce_my_account]

17. Order Tracking

Shortcode

[woocommerce_order_tracking]

Real-World Layout Example

Order Tracking Page

Track Your Order
↓
[woocommerce_order_tracking]

18. Customer Login & Registration

Shortcode

[woocommerce_my_account]

Real-World Layout Example

Login / Signup Page

Login or Create Account
↓
[woocommerce_my_account]

19. Order Thank You Page

Shortcode

[woocommerce_thankyou]

Real-World Layout Example

Custom Thank You Page

Thank You Message
↓
[woocommerce_thankyou]
↓
Cross-Sell Products

20. Checkout Payment Section

Shortcode

[woocommerce_checkout_payment]

Real-World Layout Example

Advanced One-Page Checkout

Billing Form
↓
[woocommerce_checkout_payment]

21. Product Search

Shortcode

[woocommerce_product_search]

Real-World Layout Example

Header Search Bar

[woocommerce_product_search]

22. Legacy / Utility Product Shortcodes

Shortcode

[product id="99"]

When to Use

  • Older WooCommerce sites

  • Simple product embedding


Final Thoughts

WooCommerce shortcodes give you full layout freedom without coding. When used strategically, they help you:

  • Improve SEO

  • Increase conversions

  • Create cleaner shopping experiences

  • Build professional WooCommerce stores