WooCommerce Shortcodes

WooCommerce shortcodes

WooCommerce accompanies different shortcodes that can be utilized to put content inside posts and pages. All shortcodes work effectively just when they are appropriately inserted. Kindly carefully insert WooCommerce shortcodes.

BuddyX Theme

Why should you use WooCommerce shortcodes?

WooCommerce shortcodes offer a convenient and efficient way to customize your online store. By utilizing these shortcodes, you can effortlessly personalize various aspects of your WooCommerce shop to match your specific requirements. Whether you want to display specific products, control their sorting order, determine the number of items shown per page, or strategically place Add to Cart buttons within your content, shortcodes provide a user-friendly solution. The best part is that you don’t need any coding knowledge to implement them. With just a simple copy and paste of a line or two of text, you can easily transform your eCommerce site to your liking. Overall, WooCommerce shortcodes offer simplicity, flexibility, and the ability to tailor your online store to suit your preferences without any technical expertise.

What is the issue with using curly quotation marks instead of straight ones in shortcode parameters?

Using curly quotation marks instead of straight ones in shortcode parameters causes an issue. The problem arises because parameters are unable to recognize and work with curly quotation marks. It is important to use straight quotation marks (like this: “”) when enclosing parameters in shortcode to ensure that they are properly recognized and executed. Failure to use the correct quotation marks could result in issues with shortcode functionality.

How to Use Shortcodes

Where to use it?

Shortcodes can be used on the pages and posts in WordPress. On the block editor that you are using the shortcode manager, there is a shortcode block you can use to paste the shortcode in.


If you are using the classic editor, you will have to paste the shortcode on the page or post.

Args (or Arguments)

A few of the shortcodes below will refer to “Args”. These are approaches to make the shortcode more explicit.

WooCommerce Shortcodes for Page

Below is the following shortcode for WooCommerce pages:

Also Read:How to Create a Dating Website Using WordPress Plugins

1. Cart Page: Woocommerce cart shortcode shows cart content coupon codes and other cart details.


Cart Page

2. Checkout Page: Woocommerce checkout shortcode shows the checkout process detail.

Also Read: How to Change the Sale Text in WooCommerce


Checkout Page

3. Order Tracking: Woocommerce order tracking shortcode permits the client to see the situation with the order by entering their order details.

Also Read: How to Enable Multilingual Functionality in WooCommerce Using Premier Plugins


Order Tracking

4. User Account: Woocommerce my account shortcode shows the ‘my account’ area where the client can see past requests and update their detail.

Also Read: Top 10 Elementor Plugin for Optimizing Your WooCommerce Store in 2024


User Account

Woocommerce products shortcodes

The Woocommerce product shortcode is the most significant. These [products] shortcodes permit you to show items by post ID, random sorting, categories, attributes, with support for pagination, SKU, and product tags, replacing the need for multiples shortcodes such as [best_selling_products], [featured_products], [product_attribute], [sale_products], [recent_products], and [top_rated_products] and many more.

Also Read: Benefits of Building an Open-Source Knowledge Base

1. Recent Products: It shows the arrangements of recent products added to your WooCommerce site. It is exceptionally helpful on the landing page for the show late items. The ‘per_page’ shortcode decides the number of items to show on the page. The section trait controls the number of segments shown on-page for products.

Also Read: Enhance your WooCommerce experience with these Outstanding popup plugins!

[recent_products per_page=”12″ columns=”4″]

WooCommerce Shortcodes

2. Featured Products: It works equivalent to recent products yet shows items that have been set as “featured”. The shortcode is saying: Show 12 highlighted items in 4 segments in succession.

Also Read: 7 Plugins to Consider for WooCommerce Subscriptions (2024)

[featured_products per_page=”12″ columns=”4″]

WooCommerce Shortcodes

  • Product: Show a single product by ID and SKU.

Also Read: Showcasing Product Descriptions on Your WooCommerce Store

[product id=”2285″]

WooCommerce Shortcodes

[product sku=”logo-collection”]

WooCommerce Shortcodes

  • Products: Show multiple products by ID and SKU.
[products ids=”2321, 2287, 2286, 2285″]

WooCommerce Shortcodes

[products skus=”Woo-beanie-logo, woo-polo, woo-long-sleeve-tee, woo-hoodie-with-zipper” orderby=”date” order=”desc”]

WooCommerce Shortcodes

Product Category shortcodes

These two WooCommerce category shortcodes will show your product categories on any page.

  • [product_category] – Display a specified product category.
  • [product_categories] – Display all your product categories.

Product Category: Use the code to show different products in a category by slug.

Also Read: How to Optimize Your WooCommerce Store

WooCommerce Shortcodes

[product_category category=”Hoodies”]

WooCommerce Shortcodes



I trust this article assists with knowing you about some more WooCommerce shortcodes. On the off chance that you have any further inquiries, be glad to ask me within the feedback part below.

We hope you liked this article. If you have any suggestions for us, let us know in the comments below. You can also follow us on social media platforms like Twitter, Instagram, and Facebook.

Interesting Reads:

How to Create a Dating Website Using WordPress Plugins

BuddyX Theme Review: An Ideal Free Social Membership Theme

Top-Rated eLearning Tools for Creators



Get tips, product updates, and discounts straight to your inbox.


This field is for validation purposes and should be left unchanged.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.