You are currently viewing How to Control Your RSS Feeds Footer in WordPress Easily (2 methods)

How to Control Your RSS Feeds Footer in WordPress Easily (2 methods)

This enables you to add custom text, links, or even ads to your RSS feed below the post content.

Users can read your blog posts in their favorite feed reader apps, such as Feedly.

You can add backlinks to your main site and the original post at the end of each article by adding extra content to your RSS feed footer. Even if your posts are copied by content scrapers, this will help you rank higher.

You can also give your readers a way to visit your WordPress blog directly from your RSS by manipulating the RSS feed footer.

Method 1: Add Content to RSS Feed Footer Using All in One SEO

This approach is more user-friendly and is suggested for all WordPress users. It makes use of the All in One SEO plugin, which is the most popular WordPress SEO plugin, with over 2 million installations.

The All in One SEO plugin must first be installed and activated. See our step-by-step guide to installing a WordPress plugin for more information.

After activating the plugin, go to All in One SEO » General Settings and select the ‘RSS Content’ tab.

The first box under ‘RSS Content Settings’ allows you to add content before each post. You can add content to the post footer using the second box.

Then, to edit your RSS feed footer, scroll down to the ‘RSS After Content’ section.

You’ll notice right away that All In One Seo adds credit text and backlinks to your website to the RSS feed footer.

You have the option of using the text as is or adding your own content and tags.

Before you exit the screen, make sure to click “Save Changes”.

Method 2: Manually Add Content to RSS Feed Footer in WordPress

This approach necessitates the inclusion of code in your WordPress files.

The following code must be copied and pasted into your theme’s functions.php file, a site-specific plugin, or the Code snippets plugin.

function wpb_feed_filter($query) {
if ($query->is_feed) {
add_filter('the_content','wpb_feed_content_filter');
add_filter('the_excerpt_rss','wpb_feed_content_filter');
}
return $query;
}
add_filter('pre_get_posts','wpb_feed_filter');
  
function wpb_feed_content_filter($content) {
// Content you want to show goes here 
$content .= '<p>Thanks for reading, check out <a href="'. get_bloginfo('url') .'">'. get_bloginfo('name') .'</a> for more awesome stuff.</p>';
return $content;
}

This code merely determines if the requested page is an RSS feed, then filters the content to display your message in the RSS feed footer.

Leave a Reply