Put rel="sponsored" on the clickable affiliate link. For a Paragraph block, use Edit as HTML. For a Button block, use Advanced → Link relation. If a plugin builds the link, check its settings and inspect the rendered link after saving.
A product link in a paragraph, a “Check price” button and a card inserted by a plugin can look like three versions of the same link. WordPress may generate each one differently. Check the link a reader actually clicks so you know where to make the change.
When to use sponsored or nofollow
Google asks affiliate publishers to mark commission links with rel="sponsored", including links created dynamically. Google still accepts nofollow for paid links and prefers sponsored. Use a single rel attribute on the clickable <a> element. If the link already has a value you need, add sponsored to the same attribute separated by a space. [1] · [2]
| Link on your page | What to use |
|---|---|
| New commission link | rel="sponsored" |
Existing affiliate link with nofollow | nofollow is acceptable. If you want to retain it while adding the preferred value, use rel="nofollow sponsored". |
Affiliate link already using noopener | rel="noopener sponsored" |
| Unpaid editorial link to a product manual | Leave sponsored off unless that link is itself compensated. |
Edit an affiliate text link in a Paragraph block
- Open the post in the WordPress block editor. Select the Paragraph block that contains the affiliate link.
- Open the block toolbar’s three-dot menu and choose Edit as HTML.
- Find the
<a>element with the affiliate URL. Addrel="sponsored"inside the opening tag. If there’s already arelattribute, edit its value instead of writing a second one. - Keep the full
href, including tracking parameters. Save the post or draft and open its preview to check the rendered link.
Here’s a hypothetical paragraph link that uses a site-managed redirect. The clickable link on your article carries the attribute even though its first hop is on your own domain.
<a href="/go/standing-desk" rel="sponsored">Check the current price</a>
In the block editor’s visual link controls, Mark as nofollow sets nofollow. Check the generated HTML if an SEO plugin adds its own controls. [3] · [4]
Tag a button or a plugin-generated product link
For a WordPress Button block, select the individual Button within the Buttons group. In its settings, expand Advanced and find Link relation. Enter sponsored in that field, alongside any existing values you need to preserve. The field takes the values only, so enter noopener sponsored if you want both. [5]
If a shortcode, product-card plugin or reusable template creates the link, look for the setting in that plugin or template. Some product cards have a linked image and a separate price button. Inspect both if both use affiliate URLs. Start with one card before changing a global setting that could affect every post using it.
Check the rendered link after saving
Open the post preview. In Chrome, right-click the visible affiliate link and choose Inspect. In the Elements panel, find the surrounding <a> if Chrome highlights a nested image or text span. Check that the anchor contains sponsored in its rel value and that its href still contains the link you intended. [6]
If the value shows up in the editor but disappears in the preview, check which block or plugin generates that clickable element. After you update an already published post, check the public page in a logged-out window too. If the editor and public page differ, check whether your site is serving a cached version before editing the link again.
The attribute describes the relationship to Google. Commission credit still depends on your affiliate URL and the programme’s tracking. The linked destination can also be discovered and crawled through other sources. [2]
Start with one post and two link types
Pick a comparison post with a text link and a price button. Tag both in a draft or preview, then inspect each anchor. Once you know which editor setting produced the right HTML, repeat the change on other posts that use the same block or template.
Real Affiliate Case Studies Are Being Discussed Inside
See traffic angles, monetization breakdowns, and campaign ideas from affiliates testing what actually works.
Real case studies. Real traffic angles. Real discussions from affiliates testing what actually works.
See What Real Affiliates Are Discussing