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.
Individual Coupon Shortcode
You can also grab the individual shortcode for each coupon itself, as shown in Shortcode 2 Demo.
Click into one of your coupons to edit it, and at the bottom you will see that it generates a unique shortcode for it.
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
Simply use that shortcode on any page or post. See example below.
- id – The id of the coupon post that you want to display. Required
And this is what it outputs.