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 Area already includes coupon details, this shortcode offers flexibility in where and how you present this information to your affiliates.