Documentation

Shortcodes

Below shortcodes can be used to display various sections when creating custom pages or using page-builders.

[cmd_popular_stores]

This shortcode is used to display popular stores section. "Popular Stores" is available on homepage, and so this shortcode is commonly used if you want to create a custom homepage.
There are no parameters to this shortcode.
To mark/unmark any store as "Popular", please go to WordPress > Coupons > Stores > Edit.

[cmd_coupons]

This shortcode is used to display coupons. Below are the parameters that can be used with it.
  • count: (integer) [default=10] Use this to limit the number of coupons to be displayed.
  • type: (all/code/deal/print) [default=all] Use this to filter the type of coupons you want to list.
  • store: (slug of any store) [No default] If you want to display coupons of a particular store, you can pass its slug here as a filter.
  • category: (slug of any offer-category) [No default] If you want to display coupons of a particular offer category, you can pass its slug here as a filter.
  • location: (slug of any location) [No default] If you want to display coupons of a particular location, you can pass its slug here as a filter.
  • sort: (priority/start/end) [default=priority] This is used to sort the coupons by display priority, start date or end date.
  • order: (ASC/DESC) [default=DESC] The order of sorting - Ascending / Descending.
Example:
[cmd_coupons count=10 type=code store=amazon sort=priority order=DESC]


Help Topics:


Last Updated 2 years ago