Shortcodes
Seven shortcodes, for putting Cashback Tracker's pieces on any post, page or widget area.
A grid or A–Z index of shops
The shop search box
A list of coupons
One fact about one shop — its rate, its name, its link
An affiliate link to a shop, or a specific product
The member area
A member's balance
If you use the block editor, the first three and the balance are also blocks, which preview live as you edit. The shortcodes exist for classic editors, widget areas, page builders and theme templates.
Where they work
Anywhere WordPress runs shortcodes: post and page content, a Text widget, a template via do_shortcode().
<?php echo do_shortcode('[cashback-shops limit="8" cols="4"]'); ?>Term descriptions run them too — a shop category's description can carry a grid of its own shops.
If one clashes with another plugin
Every slug is filterable. Put this in a must-use plugin and the shortcode answers to your name instead:
add_filter( 'cbtrkr_coupons_shortcode', function () { return 'my-coupons'; } );cbtrkr_advertisers_shortcode
[cashback-shops]
cbtrkr_shop_search_shortcode
[cashback-shop-search]
cbtrkr_coupons_shortcode
[cashback-coupons]
cbtrkr_advertiser_shortcode
[cashback-advertiser]
cbtrkr_tracking_link_shortcode
[tracking-link]
cbtrkr_account_shortcode
[cashback-account]
cbtrkr_balance_shortcode
[cashback-balance]
Renaming one does not rewrite the shortcodes already in your content. Anything you have published keeps the old name and stops rendering. Rename before you start using it, or search and replace afterwards.
A note on styling
The plugin's stylesheet loads on shop pages, the shop directory, the account page, and any post carrying one of these shortcodes or blocks — not on every page of your site. If you call do_shortcode() from a template rather than putting the shortcode in content, the stylesheet may not be detected; see Colours and CSS for how to force it.
Last updated