This will render your site’s URL with the affiliate’s ID appended. An affiliate uses this URL to direct customers to your site and get credited for sales and other referrals.


If you want to show how a link would look like, you can use the shortcode within HTML as well, for example:

<a href="[affiliates_url]">[affiliates_url]</a>

Remember to use HTML character entities when editing in Text mode, like &lt; for < and &gt; for > in order to show the actual code that an affiliate has to embed to render the link. You might also want to surround this with <code> or <pre> tags on your page, to make it clear that this is HTML code that has to be used.

Optional Attributes:

  • url – possible values are current and permalink – this will result in the affiliate URL being rendered for the current URL or based on the permalink of the current post. If permalink is used within a post on an archive page such as a category, then it will result in the URL for that post to be used instead of the URL of the category. current will result in the URL of the archive page, e.g. the category page’s URL to be rendered.

Example: [affiliates_url url="current"]