> For the complete documentation index, see [llms.txt](https://ctracker-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ctracker-docs.keywordrush.com/putting-it-on-your-pages/shortcodes.md).

# Shortcodes

Seven shortcodes, for putting Cashback Tracker's pieces on any post, page or widget area.

| Shortcode                                                                                | Renders                                                |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [`[cashback-shops]`](/putting-it-on-your-pages/shortcodes/cashback-shops.md)             | A grid or A–Z index of shops                           |
| [`[cashback-shop-search]`](/putting-it-on-your-pages/shortcodes/cashback-shop-search.md) | The shop search box                                    |
| [`[cashback-coupons]`](/putting-it-on-your-pages/shortcodes/cashback-coupons.md)         | A list of coupons                                      |
| [`[cashback-advertiser]`](/putting-it-on-your-pages/shortcodes/cashback-advertiser.md)   | One fact about one shop — its rate, its name, its link |
| [`[tracking-link]`](/putting-it-on-your-pages/shortcodes/tracking-link.md)               | An affiliate link to a shop, or a specific product     |
| [`[cashback-account]`](/putting-it-on-your-pages/shortcodes/cashback-account.md)         | The member area                                        |
| [`[cashback-balance]`](/putting-it-on-your-pages/shortcodes/cashback-balance.md)         | A member's balance                                     |

If you use the block editor, the first three and the balance are also [blocks](/putting-it-on-your-pages/blocks.md), 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
<?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:

```php
add_filter( 'cbtrkr_coupons_shortcode', function () { return 'my-coupons'; } );
```

| Filter                           | Renames                  |
| -------------------------------- | ------------------------ |
| `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]`     |

{% hint style="warning" %}
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.
{% endhint %}

### 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](/putting-it-on-your-pages/colors-and-css.md) for how to force it.
