Beginner’s Guide on Controlling Your RSS Feeds Footer in WordPress

Beginner’s Guide on Controlling Your RSS Feeds Footer in WordPress

Do you wish to have full control of your RSS feeds footer on your WordPress site?

It is very important to use RSS feeds on your website because it offer an easier way for users to read your blog posts in their favorite feed reader apps.

What is RSS Feeds

Contents

An RSS which simply means Really Simple Syndication feed which is an online file that contains details about every piece of content a site has published.

Each time a site publishes a new piece of content, details about that content including the full-text of the content or a summary, publication date, author, link, etc.

Why RSS Feeds Content Important in your WordPress

RSS Feeds reay matters. It makes it easier for readers to get the information they’re seeking without wasting time browsing the World Wide Web for it.

And it helps bloggers, website owners, etc. build a content marketing strategy, while increasing web traffic in the process.

Also, RSS feed footer allows you to add backlinks to your main site and the original post at the end of each article. This can help you rank higher for your posts even if they are copied by content scrapers.

There are different ways you can add content to RSS Feeds and we will show you how to

Add Content to RSS Feed Footer Using Plugins

Add Content to RSS Feed Footer Using RankMath SEO

Rankmath SEO settings allow RSS Feed footer on WordPress, It uses the RankMath SEO plugin, which is one of the best WordPress SEO plugin used by over 1 million websites.

Install and activate the RankMath SEO plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Then go to Rank Math > General Settings > Others and include the custom text via the admin GUI

/**

Filter code to change content after RSS feed item
*

@param string $content The content set in Settings.
*/
add_filter( 'rank_math/frontend/rss/after_content', function( $content ) {
return $content ;
});

you can also add the code on your function .php file.

Add Content to RSS Feed Footer Using All in One SEO

As RankMath SEO, this method is easier and very fast. Note that you can use two different SEO plugin on one website, you can read what Plugins are and how important it is on your WordPress site.

AiOne SEO is one of the most important plugin use across the world with over 3million users.

To set it up, you need to install and activate the All in One SEO plugin then, visit All in One SEO » General Settings page and click on the ‘RSS Content’ tab.

Under the ‘RSS Content Settings’, the first box allows you to add content before each post. The second box allows you to add content to the post footer.

Scroll down to the ‘RSS After Content’ section to edit your RSS feed footer.

You can either use the text as-is, or you can add your own content and tags.

Don’t forget to click ‘Save Changes’ before you exit the screen.

You can now view your RSS feed to see the changes. At the end of each article, you will be able to see content you added to your RSS feed footer.

Add Content to RSS Feed Footer Using Yoast SEO

Yoast is the best SEO plugins ever used by WordPress users from expert point of view, it is very easy to use by beginners on WordPress if you are box up. Yoast SEO plugin has all what you need to put RSS Feed at the footer end of your website.

Download the plugin zip file, unzip it, upload the rss-footer.php file to your plugins folder and enable it. Add an extra line of content to articles in your feed, defaulting to “Post from“.

Manually Add Content to RSS Feed Footer in WordPress

This method requires you to add code to your WordPress files.You’ll need to copy and paste the following code in your theme’s functions.php file.

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 simply checks if the page requested is an RSS feed, and then filters the content to display your message in the RSS feed footer.

If you have any issue on this, you can use our comment session or join our delegate on Facebook to solve any issues related to WordPress and subscribe to our YouTube Channel for WordPress video tutorials.

Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top