Home > Docs > Smart Coupons for WooCommerce > How to Display WooCommerce Coupons Using Shortcodes

How to Display WooCommerce Coupons Using Shortcodes

Last updated on April 24, 2026

To display WooCommerce coupons using shortcodes, go to Smart Coupons → All Coupons, copy the generated shortcode (e.g., [wt-smart-coupon id=116]), and paste it into any page, post, or custom content area. To display all available coupons, use the shortcode [wt_sc_user_available_coupons] on a custom page.

The Smart Coupons for WooCommerce plugin offers a seamless way to generate and manage coupon codes. By default, the plugin automatically generates shortcodes for all available coupons in your store.

One of the key advantages of using shortcodes is that they allow any visitor, regardless of role (including guests), to view available coupons.

Coupon Shortcodes

PurposeShortcode
Display a specific coupon[wt-smart-coupon id=YYY]
Display all available coupons[wt_sc_user_available_coupons]

How to Find the Coupon Shortcode

To access the shortcodes:

  • From the WordPress admin dashboard, navigate to Smart Coupons > All Coupons.
  • Under the Shortcode section of the table, copy the shortcode of any coupon in the store.
Smart Coupons for WooCommerce - Shortcodes for coupons
Smart Coupons for WooCommerce – Shortcodes for coupons

How to Display a Coupon on a Blog Post

To display coupons in a pre-defined format on any blog post, follow the given steps:

  1. First, select an existing coupon or create a new one to copy its shortcode.
  2. To illustrate, consider the coupon with the coupon code flat30.
Smart Coupons for WooCommerce - Shortcode example
Smart Coupons for WooCommerce – Shortcode example
  1. The shortcode corresponding to the coupon flat30 is [wt-smart-coupon id=116].
  2. Once you have copied the shortcode, paste it into any blog post to display the coupons.

For example, consider the blog shown below:

Smart Coupons for WooCommerce - Shortcodes demo using blog post
Smart Coupons for WooCommerce – Shortcodes demo using blog post
  • Publish or preview the post to view the coupon.
Smart Coupons for WooCommerce - Shortcodes demo using a blog post
Smart Coupons for WooCommerce – Shortcodes demo utilizing a blog post

Likewise, you can use shortcodes to display coupons on posts or pages for promotions or other purposes.

How to Display All Available Coupons

Throughout the purchase process, customers can benefit from multiple available coupons. Use the provided shortcode to display all available coupons in one place. The coupons can be displayed in various locations, giving you the freedom to choose where to display them.

Displaying all available coupons on a custom page

  1. A custom page named ‘Coupons List’ is added to the main menu to display all available coupons.
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Smart Coupons for WooCommerce – Shortcodes demo using a custom page
  1. Now, use the shortcode [wt_sc_user_available_coupons] on the custom page editor window to display all available coupons.
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Shortcodes demo using a custom page – Smart Coupons for WooCommerce
  1. Then, the coupon list will look as shown below.
Smart Coupons for WooCommerce - Shortcodes demo using a custom page
Smart Coupons for WooCommerce – Shortcodes demo using a custom page

Also, try adding the coupons to the ‘cart page,’ ‘product page,’ or any custom page to display all available coupons.