image using a clean uncluttered blue-and-green affiliate marketing style, with suitable graphs and text plus a smiling student showing a laptop with details of the subject: Rel Sponsored WordPress: Add Affiliate Link Tags

How to Add `rel=”sponsored”` in WordPress

I am an independent internet marketer. If you click a link on this page and make a purchase or join a program, I may receive a small financial commission or referral credit at no extra cost to you. I only recommend tools and resources I believe add value
image advertising D9 hosting company with text about free SSL certificates wih each platform

How to Add rel="sponsored" in WordPress

For a rel sponsored WordPress setup, use a sponsored-link setting for commission-based links if your editor provides one. Otherwise, edit the link’s HTML and add sponsored inside its existing rel attribute.

It’s a small change, and it doesn’t remove your affiliate tracking ID or stop readers buying through your link.

Now, let’s get the setting right without installing unnecessary plugins or changing things that already work.

Key Takeaways

  • Use rel="sponsored" for commission-earning links, paid placements, and links connected to sponsorships.
  • Google prefers sponsored for paid relationships, but nofollow remains acceptable. You can use both together.
  • Link attributes and visible affiliate disclosures do different jobs. You need to handle both.
  • Keep useful security attributes such as noopener, and test the published link after saving.

What Does rel="sponsored" Tell Google?

The rel attribute describes the relationship between your page and the page you’re linking to. Visitors don’t see it in the article, but search engines can read it.

Which links need sponsored?

Use rel="sponsored" for sponsored links placed because of an affiliate arrangement, advertising payment, sponsorship, or another compensated relationship.

That includes a product-review button that can earn you commission. You don’t need to receive a commission first. The affiliate arrangement is enough.

An ordinary editorial link doesn’t need sponsored simply because it points to a business. The commercial relationship behind the placement is what matters.

Sponsored versus nofollow

Google’s outbound-link guidance prefers rel="sponsored" for paid links, but accepts rel=nofollow too.

The compact spelling rel=sponsored is also valid HTML for the same value. The examples here use the quoted form for clarity.

So, rel="sponsored" works on its own. rel="sponsored nofollow" is also valid if you want to retain the broader nofollow qualification.

Google’s John Mueller has explained that nofollow isn’t a dampening factor because the link carries no ranking value in that explanation. Google’s current guidance treats these attributes as hints, so don’t assume every qualified link will receive identical treatment.

Adding sponsored doesn’t promise a ranking boost. The attribute labels the commercial relationship; it doesn’t create backlinks or promise a specific PageRank or link-authority outcome.

Choose the Right Link Attribute

These values have different jobs, even though they can appear together inside one rel attribute.

Attribute exampleWhen to use itMain purpose
rel="sponsored"Commission-based links, advertisements, paid placementsIdentify a commercial relationship
rel="ugc" (rel=ugc)Comments, forum posts, user submissionsIdentify user-generated content
rel="nofollow"Links that fit neither category and you don’t want to endorseQualify the relationship for search engines
rel="noopener"Links opening another tabPrevent access through window.opener
rel="noreferrer"Links where you want to suppress referrer informationHide the referring page from the destination

Now, the useful distinction: sponsored, UGC, and nofollow concern link qualification. Noopener and noreferrer concern browser behavior.

For a sponsored link opening another tab, rel="sponsored noopener" combines both jobs.

Google’s spam policies for paid links allow advertising and sponsorship links when they’re properly qualified. Adding an attribute doesn’t excuse misleading content or other spam tactics.

For user submissions, moderate content before publication. If submissions appear before moderation, apply a noindex directive to those pages until reviewed. UGC doesn’t make an unsafe comment trustworthy, and nofollow doesn’t prevent a destination from being indexed through other links.

Add rel="sponsored" in the WordPress Block Editor

You don’t need to rebuild your post. You’re changing the settings on an existing link.

Use a sponsored toggle when available

Open your post, select the linked text, and open its link-editing controls.

Some SEO plugins add a setting called Sponsored or Mark as sponsored. If that setting appears, enable it and save the link. Keep any existing nofollow setting if you want both values.

Don’t confuse this with Open in new tab. That setting changes where the destination opens. It doesn’t identify an affiliate relationship.

WordPress installations differ, so a missing sponsored toggle doesn’t mean you’ve done anything wrong. The HTML method works without that extra control.

D9 along with rel sponsored WordPress allocation

Edit the block’s HTML

For a normal Paragraph block, follow these steps:

  1. Select the block containing your affiliate link and open its three-dot options menu.
  2. Choose Edit as HTML, then locate the link’s opening <a> tag.
  3. Add rel="sponsored" if no rel attribute exists.
  4. If one already exists, add sponsored inside its quotation marks. For example, change rel="nofollow noopener" to rel="sponsored nofollow noopener".
  5. Return to visual editing, then save or update the post.

Leave the existing href value alone. That’s where your destination URL and affiliate tracking parameters belong.

Use one rel attribute, with values separated by spaces. Don’t add a second rel attribute beside the first.

For Button blocks, use an available link-rel field in the block settings. Custom product boxes and comparison blocks may manage links through their own controls instead.

Classic Editor and Plugin Options

Manual editing is fine for a handful of links. A plugin becomes more useful when you need consistent rules across many posts.

Add sponsored in the Classic Editor

Open the post and switch from the Visual tab to the Text tab.

Find the relevant link by searching for its visible text or destination. Add rel="sponsored" inside the opening anchor tag, or append sponsored to its existing rel values.

For example, a link with rel="nofollow" can become rel="sponsored nofollow".

Switch back to Visual and update the post. The wording, destination, and affiliate ID should remain unchanged. You’re adding a relationship value, not replacing the link.

Use a plugin for broader link management

The External Links plugin supports sponsored, UGC, nofollow, and browser-related link settings.

It’s an option when you want rules rather than repeated HTML edits. Keep the scope sensible, though. Applying sponsored to every external link would incorrectly label your ordinary editorial references as commercial.

Some plugins change the rendered page without rewriting links stored in the editor. That means the published HTML matters more than what the editing screen displays.

Don’t assume an affiliate-link manager adds sponsored automatically because it shortens or redirects URLs. Those are separate features.

What Noopener and Noreferrer Change

These two attributes often cause confusion because they appear beside sponsored and nofollow. There’s usually no reason to remove them to make an affiliate link work.

Noopener protects the original tab

WordPress introduced automatic noopener protection for links using target=_blank (the quoted HTML spelling is target="_blank") in version 4.7.4.

Without protection in a vulnerable browser setup, window.opener can let a newly opened page redirect the original tab. That creates a phishing risk if the destination replaces your page with a fake login screen.

Noopener prevents that opener access. Modern browsers also provide protections for many new-tab links, but keeping the attribute is sensible.

It has no direct SEO ranking effect and doesn’t strip tracking parameters from your URL.

Noreferrer controls referral information

WordPress stopped automatically adding noreferrer alongside new-tab external links starting with version 5.6. Older saved content can still contain it.

Noreferrer suppresses the referrer information sent to the destination. That can change what the receiving site’s analytics reports about where visitors came from.

It has no direct SEO ranking effect either.

Standard affiliate tracking based on an ID in the URL isn’t removed by noreferrer or noopener. Some programs use additional attribution checks, so don’t assume every tracking system works identically.

For your own reporting, affiliate click tracking in Google Analytics 4 (GA4) helps separate outbound clicks from confirmed sales and commissions.

Check the Published Link, Not Just the Setting

Once you’ve saved the post, open the public page. Right-click the affiliate link and choose Inspect in your browser.

Look at the actual anchor element. Its rel attribute should contain sponsored, plus any other values you’ve kept.

Then click the link and follow the complete journey. Does it reach the correct offer? Does the destination retain the tracking information it needs? If you’ve introduced plugin rules, clear the relevant page cache before inspecting again.

A correctly qualified link can still lead to a dead offer. The sponsored attribute labels the relationship; it doesn’t repair redirects or tracking.

Keep a visible disclosure near the recommendation so readers understand the commission relationship before clicking. The HTML attribute can’t replace that explanation.

My broken affiliate link audit guide covers the maintenance side. A monthly scan suits many smaller sites, while important paid-traffic links deserve more frequent attention.

Frequently Asked Questions About Rel Sponsored WordPress

Do branded affiliate redirects need sponsored?

Yes. Apply sponsored to the clickable link in your article, even when it points through a branded redirect on your own domain.

A redirect doesn’t explain the commercial relationship to Google. Also, don’t classify links only by whether the first destination is external. A same-domain affiliate redirect can still need qualification.

My affiliate link cloaking guide covers the rules and risks of that setup.

Can I stop WordPress adding noopener?

In editors that enforce new-tab protection, manually deleting noopener or an older noopener noreferrer combination may not stick. The editor can restore it when you save.

For TinyMCE-based editing, a functions.php filter using tiny_mce_before_init can set $init['allow_unsafe_link_target'] = true; and then return $init.

That permits unsafe link targets and disables TinyMCE’s automatic noopener protection. It’s not a general block-editor fix, and it doesn’t remove attributes from existing saved links.

I recommend leaving the protection alone. Adding sponsored doesn’t require disabling it.

Must I replace all existing nofollow affiliate links?

No. Google still accepts nofollow for paid links, so correctly qualified older links don’t require an urgent site-wide rewrite.

Use sponsored for new affiliate placements, and update older links when you’re already maintaining those posts. Combining the values as rel="sponsored nofollow" is fine.

You also don’t have to open affiliate links in another tab. That’s a separate publishing choice.

Keep Your Affiliate Links Clearly Qualified

Adding rel="sponsored" in WordPress is a small job once you know where the setting belongs. Use an available toggle or edit the existing link attribute without changing its destination.

Keep clear disclosures beside your recommendations, and make sure the complete sales path works.
So for rel sponsored WordPress links.
Start with your most important affiliate pages.
Label the links correctly, preserve tracking, and keep useful browser protections in place.


D9 image.

Malcolm Keith

Thanks for visiting. My aim is to help aspiring online entrepreneurs build sustainable online income through affiliate marketing, traffic generation, and practical digital business strategies. I came online in 1999 using the internet to seek a replacement for my 9 to 5. It was a different world then ๐Ÿ˜‚ Finally had sufficient income to leave 'the job' in 2010 and now I continue to explore multiple streams of income and helping people join me along the way.

Leave a Reply