AffiliateWP Affiliate Info Add-on

AffiliateWP Affiliate Info Add-on Print

  • agency licenses, affiliatewp, marketing
  • 0

The Affiliate Info Add-on for AffiliateWP lets you personalize your website based on which affiliate referred a visitor. When someone clicks an affiliate's referral link, you can display that affiliate's name, photo, contact information, and bio anywhere on your site—creating a more personal shopping experience and strengthening the connection between your affiliates and their audiences.

How Affiliate Info Works

When a visitor arrives through an affiliate link, AffiliateWP sets a tracking cookie in their browser. The Affiliate Info add-on reads this cookie and makes the referring affiliate's profile data available through shortcodes. You can place these shortcodes on any page, post, or widget to display personalized content.

If no affiliate cookie exists (the visitor came directly or through a non-affiliate link), the shortcodes display nothing by default—or you can use conditional shortcodes to show alternative content.

Available Shortcodes

Use these shortcodes anywhere on your site to display affiliate information:

Shortcode Displays Notes
[affiliate_info_name] Display name From WordPress profile
[affiliate_info_username] Username WordPress login name
[affiliate_info_email] Email address Use carefully for privacy
[affiliate_info_website] Website URL From profile, displays as link
[affiliate_info_bio] Biographical info From WordPress profile
[affiliate_info_gravatar] Profile photo 60px default, uses Gravatar
[affiliate_info_twitter] Twitter handle Requires Yoast SEO
[affiliate_info_facebook] Facebook URL Requires Yoast SEO

Conditional Content Shortcodes

These wrapper shortcodes let you show different content depending on whether a visitor was referred by an affiliate:

  • [affiliate_info_referred] ... [/affiliate_info_referred] – Content only appears if an affiliate is being tracked
  • [affiliate_info_not_referred] ... [/affiliate_info_not_referred] – Content only appears if NO affiliate is being tracked

Implementation Examples

Personalized Welcome Message

Add this to your homepage or landing page header:

[affiliate_info_referred]
<div class="affiliate-welcome">
  You're shopping with [affiliate_info_name]!
  Questions? Reach them at [affiliate_info_email]
</div>
[/affiliate_info_referred]

[affiliate_info_not_referred]
<div class="welcome">
  Welcome! Browse our products below.
</div>
[/affiliate_info_not_referred]

Affiliate Spotlight Section

Create a sidebar widget or page section showcasing the referring affiliate:

[affiliate_info_referred]
<div class="affiliate-card">
  [affiliate_info_gravatar]
  <h4>Your Host: [affiliate_info_name]</h4>
  <p>[affiliate_info_bio]</p>
  <a href="[affiliate_info_website]">Visit their site</a>
</div>
[/affiliate_info_referred]

Checkout Page Trust Builder

Remind customers who referred them at checkout to reduce cart abandonment:

[affiliate_info_referred]
<p class="referral-notice">
  You were referred by <strong>[affiliate_info_name]</strong>.
  They'll receive credit for your purchase!
</p>
[/affiliate_info_referred]

Best Practices

  • Require complete affiliate profiles: The shortcodes only work if affiliates fill out their WordPress profiles. Consider making bio and Gravatar requirements for your program.
  • Be selective with email display: Showing affiliate emails publicly can lead to spam. Consider using it only on post-purchase pages or member areas.
  • Always use conditional wrappers: Direct visitors (non-referred) will see blank spaces if you don't wrap content in [affiliate_info_referred] tags.
  • Test with multiple affiliates: Create a test affiliate account and verify content displays correctly across different pages.
  • Style your output: The shortcodes output plain text/HTML. Use CSS classes in your wrapper divs to match your site design.

Frequently Asked Questions

Why is the affiliate info not showing?

Check these common causes: (1) The visitor doesn't have an affiliate tracking cookie—test by clicking an actual affiliate link first. (2) The affiliate's WordPress profile is incomplete—they need to fill in their display name, bio, etc. (3) The shortcode is outside of [affiliate_info_referred] tags and no affiliate is being tracked.

How long does affiliate info remain visible?

The information displays as long as the AffiliateWP tracking cookie exists in the visitor's browser. This follows your AffiliateWP cookie expiration settings (typically 30-90 days).

Can I change the Gravatar size?

Yes. Use the size attribute: [affiliate_info_gravatar size="120"] to display a 120px image instead of the default 60px.

Do affiliates need special permissions?

No. The add-on pulls data from standard WordPress profile fields. Affiliates just need to complete their profiles through the normal WordPress user edit screen or their affiliate dashboard.

Will this work with page builders?

Yes. The shortcodes work in any context that processes WordPress shortcodes—including Elementor, Beaver Builder, and Gutenberg. Add them via a shortcode block or text/HTML widget.

Easy to Implement Yourself

The Affiliate Info add-on is included with your AffiliateWP installation. The shortcodes are straightforward to use—paste them where you want affiliate information to appear, wrap them in conditional tags, and you're set.

If you'd rather have us handle the implementation—placing shortcodes on your landing pages, styling affiliate sections to match your brand—that's the kind of work our Content Operations service covers.

Questions? Contact us at support [at] webops [dot] host or submit a support ticket.


Was this answer helpful?

« Back