There are two different types of shortcodes you can use with the WP Coupon’s plugin. Below are examples.

Coupon’s Archive Shortcode

The first shortcode you can use is the one show in the Shortcode 1 Demo. This shortcode allows you to display the archive template for your coupons. Simply use the following on any page or post.

[wp_coupons]

Individual Coupon Shortcode

You can also grab the individual shortcode for each coupon itself, as shown in Shortcode 2 Demo.

Step 1

Click into one of your coupons to edit it, and at the bottom you will see that it generates a unique shortcode for it.

shortcode wp coupons

You can also add additional information, such as this example.

[wp_coupons limit=”9″ tag=”summer 2016″ nav=”false”]

  • limit – The maximum number of posts to display per page. Not Required, Default: 9
  • tag – The coupon tag you wish to display. This will cause the shortcode to only pull in coupons that have the given tag. Not Required
  • nav – If set to ‘false’, this will hide the primary coupon type navigation. Not Required, Default: true

Step 2

Simply use that shortcode on any page or post. See example below.

[coupon id=”22″]

  • id – The id of the coupon post that you want to display. Required

And this is what it outputs.

$10 Free Credits
keycdn discount
KeyCDN Discount
Supercharge your WordPress site! Get $10 / 250GB in Free Credits.
View This Deal

Was this article helpful?

Related Articles