AffiliateWP Affiliate Info

Updates for one year, unlimited sites, auto updates, and regular updates.

$3.99

Version 1.2.1 report outdated
Updated on November 11, 2026
Auto Updates Yes
License GPLv2+

Access all items listed on our website. All new releases are also included as long as the plan is active.

Affiliate Info lets your site show visitors who referred them. Once someone has arrived through an affiliate’s referral link, the add-on can display details about that affiliate, such as their name, directly on the front end. It works through a set of shortcodes that you place on pages, posts and widget areas, so you decide where the information appears and how the surrounding message is worded.

How the tracked affiliate is identified

The process starts with the referral link. When a visitor follows an affiliate’s link, AffiliateWP records that affiliate’s ID for the visitor, and the add-on reads that record to decide what to show. The details therefore reflect the affiliate tied to that visitor’s arrival, rather than whoever happens to be signed in to your site.

The information can change during a single visit. When AffiliateWP’s Credit Last Referrer option is in use, the displayed details update whenever a visitor follows a different referral link, so the most recent affiliate is the one shown. Plan your wording with that behavior in mind, particularly if visitors often browse through more than one partner’s link.

What a referral link does behind the scenes

A referral link is an ordinary web address with something extra attached, a marker that tells your site which affiliate sent the visitor. That marker is what makes the rest of the referral system work. Without it, the site would have no way to connect a visitor’s arrival to a partner, and there would be nothing for a display component to show.

Because the link is the trigger, anything you display through this add-on depends on visitors actually arriving through a link. A visitor who types your address directly, without an earlier referral still stored in their browser, will not be tied to an affiliate. That is why the fallback wrapper described below matters so much.

The field shortcodes

Each detail has its own shortcode, and every one of them draws on information saved in the affiliate’s profile or account:

  • [affiliate_info_name] shows the display name saved in the profile.
  • [affiliate_info_website] shows the website address on record.
  • [affiliate_info_email] shows the email address.
  • [affiliate_info_gravatar] shows a Gravatar picture matched to the email on the affiliate’s WordPress account, and falls back to the default Gravatar when none has been set up.
  • [affiliate_info_username] shows the WordPress username.
  • [affiliate_info_bio] shows the biographical information from the profile.
  • [affiliate_info_twitter] shows the Twitter handle, and it needs Yoast SEO to be active.
  • [affiliate_info_facebook] shows the Facebook link, which also depends on Yoast SEO.

None of these shortcodes is documented with attributes, so treat them as plain placeholders and test the result on your own site rather than assuming how each one will look.

Showing content only to referred visitors

Two wrapper shortcodes let you tailor the message to each visitor. Content placed between [affiliate_info_referred] and its closing tag appears only while an affiliate is being tracked. Content inside [affiliate_info_not_referred] acts as fallback text for visitors who arrived without a referral link.

The vendor’s example wraps a short sentence that introduces the tracked affiliate as your site representative, with the name shortcode placed inside it. A visitor with a tracked affiliate sees the sentence completed with a name, while other visitors see nothing from that block. Using the fallback wrapper lets you show a different message to those visitors instead, such as an invitation to join your program.

Where the shortcodes work

The shortcodes can be used in posts, pages and widget areas across the site, and several of them can share the same page or post. That flexibility makes it straightforward to add a greeting to a landing page, a note in the sidebar or an article that mentions the affiliate who referred the reader.

Placement ideas that suit different goals

A widget area placed near the top of a page can carry a short note, such as which partner introduced the visitor. An article can include a byline-style line that names the affiliate who recommended the subject, which adds a personal touch to editorial content. A landing page is useful when you want a fuller presentation, with the name, a photograph and a short bio arranged around the product story.

Think about the visitor’s next step as well. A message that names an affiliate works best when it points somewhere useful, such as the product, the contact details or a relevant guide. Without a next step, the detail can feel decorative rather than helpful.

Ideas for putting the details to work

Trust is the first benefit. Telling visitors who referred them, and why that person’s recommendation matters, can make an introduction feel personal. Where affiliates deal directly with customers, showing an email address or social profile lets visitors get in touch without searching for one. The vendor cautions that email addresses should be displayed with care, so weigh the convenience against the privacy of the people involved.

A product landing page is another strong option. A page that displays the tracked affiliate’s details can be the destination for an affiliate’s referral URL, which suits affiliates who do not have websites of their own. It also suits site owners who want tighter control over how a product is promoted, because the page carries a consistent message while still naming the person who referred the visitor.

Privacy and personal details

Showing personal information on a public page deserves a deliberate decision. Display only what a visitor needs in order to understand the referral, and avoid adding fields simply because they are available. A name is usually enough for a greeting, while a contact address is worth showing only where affiliates have agreed to be contacted by customers.

Check your privacy policy and the rules that apply where you operate before you publish any personal detail. Affiliates may also have preferences about what appears under their name, so it is sensible to agree on the fields in advance rather than discovering a concern after the page is live.

Keeping details accurate

The shortcodes read from information that affiliates maintain in their own profiles, so the page reflects whatever they have saved. A change of display name or a new website address will therefore appear without any editing on your side. That is convenient, but it also means you should not assume that a detail is present or correct in every case.

Build the message so that it still reads well if a field is empty or unusual. A short sentence that works with a full profile should also work with a minimal one, and it is worth checking the result when affiliates have only just joined and have not yet completed their profiles.

Requirements and developer access

AffiliateWP must be installed and active before the add-on can do anything useful. After that, switch on the Affiliate Info add-on. The Twitter and Facebook fields are the only ones that need another plugin, so you can skip that step if you do not plan to use them.

Developers can reach the same details through PHP functions, which the vendor documents in a separate article. This route is useful for custom templates or for features the shortcodes do not cover, and it keeps display logic in your own code when a site needs something more tailored.

Testing your messages

Test both versions of your message before you publish. Open a private browsing window so that earlier visits do not leave a referral in place, then arrive through a referral link to see the referred content. Next, arrive directly at the same page to confirm that the fallback message appears instead. Repeat the check on a phone, because a long name or a bio can change the layout quite a lot on a narrow screen.

It is also worth testing an affiliate profile with minimal details, such as one with no website or no biography. That shows you how the page reads when information is missing, and it helps you decide whether the surrounding wording still makes sense.

Choosing what to display

Because each detail is a separate shortcode, you choose exactly which information appears. A simple greeting might need only the name, while a contact area might include the email address and social links. Keep the selection small and purposeful. Showing fewer details reduces clutter, and it keeps personal information off the page unless there is a clear reason to show it.

Used carefully, the details turn a referral from an anonymous click into a relationship the visitor can recognize. Set it up with thought, test both the referred and fallback messages, and the add-on gives your site a personal touch that is hard to achieve with static text alone.

Similar Products