How to add a separate signature or other content at the end of the post to RSS Feed


RSS technology has been around for years, but it’s too early to write off. RSS has a huge army of fans who prefer to read news from their devices in a convenient form without ads and all the styling of the site. In this regard, the news from the RSS feed is somewhat like the newfangled AMP.

On WordPress, too, many sites use RSS, because it is a platform for publishing content and news, in fact. But with RSS to WordPress, there is one feature. In this article, we show how you can add a separate signature or other content at the end of your posts to the RSS Feed, and why you need to do this.

Why add your signature at the end of the WordPress post to RSS?

Read RSS news feeds very conveniently from mobile devices using programs such as Feedly.

However, there is one problem here. The fact is that RSS is loved not only by readers but also by Internet bots ( content scrapers ) that automatically collect and steal your content as soon as it is published.

If you have a popular site with RSS set up, there is a high probability that somewhere on the web there is one more site on which your content is duplicated for a copy. And the worst news is that such sites may have a higher search ranking than your website.

How can you protect yourself from this?

To do this, you can add at the end of each post for the RSS feed a specific signature or paragraph of text with a link backlink to the original post on your site.

For example: “This entry was first published on such and such a number on such and such a site using such a link.”

This way you will be able to increase the search ranking of your posts, even if they are stolen and posted on someone else’s site. And a foreign site cannot rise above you in the rating on the content with your link.

Let’s see how you can do this on WordPress.

Method 1. Adding an RSS signature with Yoast SEO

This is the easiest way. If you do not already use the free plugin Yoast SEO (which is strange as for the WordPress site that regularly publishes content), then install and activate it right now:

After activation, go to the plug-in settings panel and switch to the tab Features.Lower down to the section Advanced settings pages and make sure it is on:

Now save the plugin settings.

After updating and reloading the settings page, you will see the menu SEO → Advanced page.Go there and switch to the tab RSS :

In the section RSS feed settings , you can add your unique text for the RSS news feed. In the top field, enter the text that will be placed before the content of each post, and in the bottom – after the content of each post.

Yoast SEO will automatically add the prepared text with reference to your site and links to the post itself. You can use this text as is, and you can edit and translate it into Russian.

Do not forget to save the changes.

Now you can watch your RSS feed with posts. At the end of each post you will see a new paragraph of the text that you just set up in Yoast SEO:

Method 2. We add the RSS signature manually through the code

This method is a little more complicated. But you do not have to install and configure Yoast SEO. You need to add this code to the file functions.php of your active skin:

 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. = '

Thanks for reading, check out  '. Get_bloginfo ('name'). ' for more awesome stuff.

Return $ content;

This code will check whether your page was post-requested via RSS Feed or not. And if the request was via RSS Feed, then a separate message is added to the main content from the bottom. You can edit the text of the message in this code at your own discretion.

That’s it! I hope we were able to help you understand the signature under RSS content, and now you know why it’s useful to do it.


Leave a Reply

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