Skip to content

Affiliate disclosure ​

Show your own disclosure notice above or below qualifying posts, see which posts qualify, and style it to match your theme.

Affiliate disclosure adds your own notice, like "This post contains affiliate links", to single posts that contain an affiliate link: a link to one of your affiliates' domains, or a link marked sponsored. You write the text once and choose above or below the post. Link Manager Pro then places it every time such a post is shown. All the affiliate disclosure notice settings sit on one tab, explained row by row in Affiliate disclosure settings. It's off until you turn it on.

What the affiliate disclosure does ​

The affiliate disclosure is a short block of your text that Link Manager Pro adds to the post content each time a visitor opens the post. It's never written into your posts. That has three practical effects:

  • One setup covers every qualifying post, old and new. You don't edit posts one by one.
  • Change the text or style, and every post shows the new version on its next view.
  • Turn the switch off, and the notice is gone from every post at once.

A page cache can lag behind both changes: cached pages keep their old version until the cache is cleared.

What it doesn't do: it doesn't check whether a link really earns you a commission. It checks the link's domain against your list under Affiliates, or looks for sponsored. There's no switch to hide it on one post. It can't hold a link or formatting either, because the text is plain text (Disclosure text).

Note

Link Manager Pro shows the notice under the conditions on this page. It doesn't check whether your wording or placement meets the rules that apply to your site, and these docs give no legal advice.

Set up the disclosure notice ​

You need to be an administrator, because only administrators see Settings.

  1. Go to Link Manager › Settings › Affiliate disclosure.
  2. Turn on Affiliate disclosure 1. The rows below it appear.
  3. Read Disclosure text 2 and change it if it doesn't sound like you (tips below).
  4. Choose Above the post or Below the post in Position 3, and a look in Style 4.
  5. Check Post types. Posts and Pages are picked to start with (the field shows Posts and +1).
  6. Look at Preview, then select Save changes.
The Affiliate disclosure tab with the switch on and saved, marked: 1 the Affiliate disclosure switch, 2 the Disclosure text field, 3 Position set to Above the post, 4 Style set to Boxed. Post types and Preview sit below
The top of the Affiliate disclosure tab with the ready-made text, Above the post and Boxed.

To check it worked, open a published post that links to one of your affiliates, through a short link or directly. The notice sits at the start or the end of the post text. If you use a page cache plugin, clear its cache first. Saving this tab doesn't clear it, so cached pages keep their old version.

On a post that counts, with Above the post, the notice 1 comes before the first paragraph 2.

A published post on the front end, marked: 1 the boxed affiliate disclosure notice with its info icon, 2 the first paragraph of the post, which starts right below the notice
With Above the post, the notice sits at the start of the post content, under the title and before the first paragraph.

Which posts show the disclosure? ​

With Affiliate disclosure on, a post shows the disclosure when it's opened on its own page and its type is picked under Post types. Its content must contain an affiliate link. Disclosure text must not be empty either. Archive and category pages and feeds never show it. If you remove every post type, every type can show it (Post types).

In practice, that means:

  • A link to the domain of one of your affiliates counts, with or without a short link. Capitals and a leading www. are ignored, but a subdomain like shop.example.com needs its own affiliate.
  • A short link of yours counts when its destination is on an affiliate's domain. The address can use your Short link prefix, Internal link prefix or Affiliate link prefix. That includes auto-links from keywords.
  • Any link whose rel contains the word sponsored counts, to any site. rel is a part of the link's HTML that tells search engines how to treat it.
  • A link marked only nofollow doesn't count. Neither does a short link to a site that isn't one of your affiliates, or a link to your own pages.
  • A link with a previous prefix counts like one with the current prefix, while the old prefix still opens links.

The full list, including path-only links and other edge cases, is in When does the disclosure show?.

The notice is added only to the viewed post's own content. Feeds, excerpts, the post's own or other posts', and other posts shown on the page, such as a Query Loop, don't get it.

Show the disclosure above the post or below it ​

Above the post, the default, puts the notice at the start of the post content, before the first paragraph. Below the post puts it after the last paragraph. Both sit inside the post content, so the post title stays where your theme puts it.

Pick by where your links sit:

  • With Above the post, readers pass the notice before any link in the post text, including one in your opening paragraph.
  • With Below the post, a reader who clicks a link halfway down hasn't reached the notice yet. It suits posts whose links come at the end, like a list of sources.

Both choices are on the Position row.

Style the disclosure with your theme or custom CSS ​

The notice takes your theme's font and text color with every style. Style decides the frame around it (Position and style):

Choice in StyleWhat visitors see
Boxed (the default)A box with a thin border, a light tinted background and a small info icon
MinimalThe text with the info icon and a thin divider line below it
CustomYour text only, styled by your own CSS class

Use Custom when your theme already has a callout look you want to match. Choose Custom, enter a class name in Custom CSS class without the dot, for example my-disclosure-style, and save. Then add CSS for that class to your theme:

css
.lmp-affiliate-disclosure.my-disclosure-style {
  font-size: 1em;
  margin: 0 0 2em;
  padding: 12px 16px;
  border-left: 4px solid currentColor;
}

For technical readers: the notice is an <aside> with the class lmp-affiliate-disclosure, plus your class with Custom. The plugin's small stylesheet gives that base class 0.875 times the post's text size and some space below. A selector with both classes, as above, overrides those values whatever order the stylesheets load in. Only one class name works, because spaces are removed (Custom CSS class).

Write a notice your readers understand ​

A good notice is short, plain and true for your site. Disclosure text starts with this sentence, which you can keep or change:

Disclosure: This post contains affiliate links. If you purchase through these links, I may earn a commission at no additional cost to you.

To make it work for your readers:

  • Keep it to one or two short sentences. It shows a little smaller than your post text, and readers skim it.
  • Start with "Disclosure:", like the ready-made text, so readers know what it is at a glance.
  • Say it in everyday words: this post has affiliate links, and you may earn money when someone buys through them.
  • Keep only what's true for your partners. The ready-made text promises "at no additional cost to you", so check that holds for the programs you link to. It also says "I": change it to "we" if several people write for your site.
  • Point to your full policy in plain words. Links can't go in the notice, so write the address as text, for example "Our disclosure policy: yoursite.com/disclosure".

The field takes plain text, shown as one paragraph, and an empty field means no notice anywhere. The details are under Disclosure text.

The Cookie notice row on this tab is about the cookie Link Manager Pro sets for click tracking, not about affiliate links. Its switch, I handle cookie consent for my visitors, is saved but changes nothing: no feature reads it. Whether the cookie waits for consent is set on the Integrations tab, with Respect visitor consent. That row shows while a supported consent plugin is active. Developers can also decide it with a filter (Cookie consent for link tracking). What the cookie holds and how long it lasts is in Cookie notice setting.

Get more out of it ​

  • Add each partner under Affiliates. A link counts when its domain is on that list, so a partner you haven't added gets no notice unless the link is marked sponsored (Affiliates).
  • Mark a link that stays plain. If a link goes to a partner that isn't one of your affiliates, give it rel="sponsored" in the post's HTML, and the post counts.
  • Cover your review post type. If your reviews or products live in their own post type, pick it under Post types, next to Posts and Pages (Post types). Masking on save doesn't run on that type. Links straight to an affiliate's domain count as they are.
  • Update links after a prefix change. Links with a previous prefix keep counting while it opens links, but Update links in posts under the prefix fields moves them to the new prefix (General settings).

If something goes wrong ​

  • If the notice doesn't show, then check that Affiliate disclosure is on and saved, and Disclosure text isn't empty. Open a single post of a picked post type that links to an affiliate's domain, directly or through a short link with a current prefix, or has a sponsored link. Then clear your page cache.
  • If the notice shows on a post without affiliate links, then that post has a link to an affiliate's domain, a short link to one, or a sponsored link. The fix for each cause is in Affiliate disclosure settings. There's no switch for a single post.
  • If your policy link vanished from the notice after saving, then the field took out the HTML and kept only its words. Write the address as plain text instead (tips above).
  • If Custom shows bare text with no frame, then your theme has no CSS for the class yet. Add a rule like the one above, using one class name with no spaces.
  • If every condition is met but the notice is missing, then your theme or page builder may show the post without WordPress's usual content output. That's where the notice is added.

More fixes are on Troubleshooting.