Coupon

The Coupon shortcode for WordPress can be used to display coupons inside your posts or pages for any products or services promoted. The Coupon shortcode can display product image, coupon title, description/info on the offer, discount code to be used for available offer and a reveal button which opens the offer in a new page. Check below for example implementations and shortcode documentation:

Coupon Examples

X3M Shortcodes

X3M Shortcodes

Get our X3M Shortcodes Pro plugin now with a price of just $39. Nearly 50 shortcodes included with many Pro options which will enhance your website interactions with customers.

Coupon Shortcodes

Coupon Shortcode
[x3m-coupon title="X3M Shortcodes" description="Get our X3M Shortcodes Pro plugin now with a price of just $39. Nearly 50 shortcodes included with many Pro options which will enhance your website interactions with customers." url="https://x3mmedia.com/wordpress-plugins/x3m-shortcodes/#pro-version" code="just $39" image="https://x3mmedia.com/wp-content/uploads/x3m-logo.png" button="Claim Offer" color="green"]
The shortcode can be used to display coupon offers in content which can include product image, discount details as well as discount code and link towards the offer. Above example displays a coupon with image and hyperlink directing to offer page.

Coupon Documentation

Here are the shortcode option settings available for Coupon:

Shortcode Settings Details
title=”Offer Title” This is used to set the title of the offer / discount.
description=”info here” This is used to set the description of the offer / discount. Accepts html code, but make sure to use ‘ instead of “.
url=”offer link” This is used to set the link towards the offer. It will open in new page and has attribute rel=”nofollow”.
code=”DISCOUNT10″ This is used to set the coupon / voucher code. HTML code is accepted for more text customization.
image=”image link” This is used to set the image source for the offer / product / service.
url=”offer link” This is used to set the link towards the offer. It will open in new page and has attribute rel=”nofollow”.
button=”Claim Offer” This is used to set the text on the offer button.
color=”green” This is used to set the color of the coupon container outline as well as the color of the offer button.

Color names or HEX color codes can be used to set the desired color.

visible=”DD.MM.YYYY” This is used to set the date in DD.MM.YYYY format from which the coupon would be visible in the post. Before this date the shortcode will not display anything. It will become published and visible only on the date set and onwards.
expiration=”DD.MM.YYYY” This is used to set the date in DD.MM.YYYY format from which the coupon expire. From this date onwards, the coupon details would still be displayed in the page, but would change its status to expired.
revealed=”yes/no” This is used to set the status of the code. There are two options:
– “yes” – default, it displays the code and button for offer next to the code
– “no” – it hides the code in the coupon container and user is required to click on offer button to reveal the code