Skip to main content

RSS Feeds - Functional specification

This documentation provides technical information about how Yoast SEO modifies RSS feeds.

For any feed(s) of public posts/pages*, Yoast SEO allows the user to automatically prefix and/or append a dynamic content string (for the purposes of branding, attribution or similar).

* Excluding WordPress' "comment feeds".

Default settings

The default prefix setting ("Content to put before each post in the feed") is blank/empty.

The default suffix setting ("Content to put after each post in the feed") is The post %%POSTLINK%% appeared first on %%BLOGLINK%%..

Replacement variables

The following variables are available, and are automatically replaced in the generated prefix/suffix.

VariableDescription
%%AUTHORLINK%%A link to the archive for the post author, with the author's name as anchor text.
%%POSTLINK%%A link to the post, with the title as anchor text.
%%BLOGLINK%%A link to your site, with your site's name as anchor text.
%%BLOGDESCLINK%%A link to your site, with the site's name and description as anchor text.

Indexing & canonical URLs

Depending on the type of feed, additional HTTP headers must be set:

  • Feeds representing content (posts, pages or taxonomies) should set a canonical URL of the 'parent' URL, via a link header.
  • Feeds represending comments on content should set a meta robots directive of noindex, follow, via an x-robots-tag header.