Show an affiliate disclosure on your WordPress blog posts

The Endorsements kit in TermsFeed AutoTerms adds a disclosure box to your blog posts, before or after the content, on every post or on posts with a chosen tag. The FTC Endorsement Guides (16 CFR Part 255) require a clear and conspicuous disclosure of a material connection, such as a commission you earn on affiliate links. Setup takes 3 steps and about 10 minutes.

Where the Endorsements disclosure appears

The disclosure appears only on the single view of a blog post, the page that shows one post of the WordPress type "Post" on its own.

The Endorsements box with the default disclaimer message and a light gray background, between the title and the first paragraph of a blog post

The disclosure never appears in these places.

  • Pages, legal pages included, do not show the box.
  • Posts of custom post types, such as WooCommerce products or portfolio items, do not show the box.
  • Archives, category pages, tag pages, search results, and the blog list do not show the box.
  • Excerpts, such as related posts and meta descriptions built from the post content, do not carry the box.
  • Other posts shown on the same page, such as posts in a widget, do not carry the box.
  • A legal page embedded in the post with the [wpautoterms page="..."] shortcode does not carry a box of its own.

The plugin adds the box through the WordPress the_content filter, so a WordPress theme or page builder that prints the post without that filter does not show it. Run the check for that cause in Disclosure Box Missing in WordPress.

Step 1: Turn on the Endorsements kit

The Endorsements settings screen has no "Enabled" field, so the kit turns on only from the Compliance Kits screen.

  1. Open TermsFeed > Compliance Kits in your WordPress admin.
  2. Click the "Enable" button in the Endorsements box. The setting saves at once, and a page cache shows the box once you clear it.
  3. Click the "Configure" button in the same box to open the "Endorsements" settings screen.

Step 2: Set the Endorsements options

With the defaults, the kit adds its default disclosure to the top of every post. Click the "Save Changes" button after you change the fields.

Field Values Default Effect
"Disclaimer message" Rich text 3 paragraphs about affiliate links The text of the disclosure box
"When to insert the disclaimer note" "always", "if tag exists on a post" "always" Adds the box to every post, or only to posts with the chosen tag
Tag "Choose a tag from your current list of tags:" with every post tag and "new tag...", and "Add a new tag:" The first tag in the list, or "new tag..." when the site has no tag The tag a post needs, shown only for "if tag exists on a post"
"Where to insert the disclaimer note" "at the top of the post (before post content)", "at the bottom of the post (after post content)" "at the top of the post (before post content)" The place of the box in the post

The Endorsements settings screen with the Disclaimer message editor and When to insert the disclaimer note set to if tag exists on a post, with the tag select marked

Rewrite the default message to name what you earn and from whom. The "Insert shortcode:" links under the editor add a value from General Settings, such as the site name, and the box keeps only the HTML that WordPress allows in posts.

The box sits before or after the post content, never beside a single link. Readers miss a box far from the links on a long post or a phone screen. Add a short disclosure beside each affiliate link that sits far from the box. Read the placement rules in ways to disclose endorsements.

Show the disclosure only on posts with a chosen tag

  1. Set "When to insert the disclaimer note" to "if tag exists on a post".
  2. Pick a tag under "Choose a tag from your current list of tags:". For a new tag, pick "new tag..." and type its name in "Add a new tag:".
  3. Click the "Save Changes" button, which creates the new tag.
  4. Add the tag to each post with affiliate links in the Tags panel of the post editor.

A tag the plugin creates stays in WordPress after you delete the plugin, so give it a name your editors understand, such as "affiliate".

Style the Endorsements box on your WordPress website

The box takes the fields "Background color", "Font", "Font size", "Text color", "Links color", and "Additional CSS", which only an account with unfiltered_html saves. An empty color field or a "default" font value does not print a style, which leaves the look of your WordPress theme on the box. See the accepted values of each field in the style fields of the notice and Endorsements kits.

Write rules in "Additional CSS" with the class wpautoterms-endorsements. Find the selector of the links in the box in TermsFeed AutoTerms CSS Classes and Containers. Fix a box color that stays the same with Colors or Fonts Not Showing in WordPress.

Step 3: Check that the disclosure appears on your posts

The box shows to every visitor, logged in or not.

  1. Clear your page cache.
  2. Open a blog post on its own page, a post with the tag when you chose "if tag exists on a post". Open Chrome DevTools, select the Elements tab, press Ctrl+F (Cmd+F on a Mac), and search for class="wpautoterms-endorsements". Check that the search finds the box.
  3. Check that the box sits before or after the post content, as "Where to insert the disclaimer note" sets.
  4. Open a page and the blog list, and check that neither shows the box.
  5. With "if tag exists on a post", open a post without the tag and check that it does not show the box.