The [affiliate_creative]
shortcode allows you to display a specific creative from AffiliateWP » Creatives on any page of your website. This is useful when you want to showcase a particular banner, text link, or marketing material for affiliates in a specific section of your website instead of displaying all creatives at once.
Using [affiliate_creative] Shortcode
To use this shortcode, simply specify the creative ID within the shortcode as shown below:
[affiliate_creative id="123"]
In this example, 123 represents the ID of the creative you want to display.
Finding the Creative ID
To locate the creative ID:
- Navigate to AffiliateWP » Creatives in your WordPress admin dashboard.
- Find the creative you want to display.
- Copy the ID number associated with that creative from the URL bar.
- Use this ID in the shortcode to display the specific creative.
Example Use Cases
Displaying a Specific Banner Ad on a Custom Page
If you want to display a single banner creative on a landing page, you can use:
[affiliate_creative id="45"]
This will embed the creative with ID 45, ensuring that only that specific banner is shown.
Embedding a Custom Text Link in a Blog Post
If you want to display a text-based creative in a blog post promoting your affiliate program, use:
[affiliate_creative id="78"]
This will output the text link creative with ID 78, making it easy for affiliates to copy and share.
- Affiliates must be logged in to view the creative. If they are not logged in, they will not see anything.
- This shortcode is different from
[affiliate_creatives]
, which displays all available creatives.
The [affiliate_creative]
shortcode is an excellent tool for displaying a single creative instead of all available creatives. Whether you want to embed a specific banner ad, text link, or other promotional material, this shortcode makes it easy to place creatives exactly where you need them for affiliates.