What’s new

View the latest updates

One email when AffiliateWP or RewardsWP ships something new. Unsubscribe anytime.

Check your inbox

We sent a link to . Open it to start getting updates.

Not there? Check spam, or .

Loading the latest updates

Every fix, release by release: Changelog

[affiliate_coupons] shortcode

Ginger Coolidge

Written by Ginger Coolidge
Updated

On this page

Want to display an affiliate’s assigned coupons on a WordPress page? The [affiliate_coupons] shortcode allows you to showcase affiliate-specific discount codes along with their values. If an affiliate has coupons assigned to them, this shortcode will generate an HTML table listing all available coupons.

While AffiliateWP automatically displays an affiliate’s assigned coupons in the Affiliate Area, you may want to use this shortcode to show coupons elsewhere on your site.

How the [affiliate_coupons] Shortcode Works

The [affiliate_coupons] shortcode pulls an affiliate’s assigned coupons from supported integrations and displays them in an HTML table. This makes it easy for affiliates to view and share their available discount codes with potential customers.

Currently, the shortcode works with the following integrations:

If no coupons are assigned to the affiliate, the shortcode won’t output anything.

Using the [affiliate_coupons] Shortcode

To display an affiliate’s coupons, simply place the following shortcode on any WordPress page or post:

[affiliate_coupons]

This will generate an HTML table listing all assigned coupons along with their discount amounts. The shortcode can be used within:

  • The Affiliate Area (though AffiliateWP already displays coupons there by default)
  • A custom dashboard page for affiliates
  • A dedicated coupon page for easy reference

That’s it! The [affiliate_coupons] shortcode is a simple yet effective way to display affiliate-specific discount codes on any WordPress page. While the Affiliate Portal already shows each affiliate their coupon codes, this shortcode offers flexibility in where and how you present this information to your affiliates.

Still stuck? Submit a ticket and the team that builds it will help.

Cyber Monday Extended

70% off Pro ends Friday

Launch your affiliate program today and unlock a new revenue channel to grow your business faster.

00 Days
00 Hours
00 Minutes