How to Create Your Own RSS Feed for Your Site

laptop

If the desire to develop your online resource is constant and grows stronger every day, then sooner or later you will come close to the question of how to make an RSS feed on the site. Do not think that it is very difficult and under the power of only great webmasters. In fact, you can do it yourself.

If there is a desire to write the feed manually, then the given step-by-step instructions will help you.

  • Choose the articles you want to inform your subscribers about (let them be about 15, no more), format the list in any text editor. It is necessary to immediately specify the titles, links and date of publication.
  • Let’s start creating the RSS feed itself. Open Notepad (yes, this tool in the “Standard” tab is very useful). Write the name of the feed in the header, and place a link to your resource here. You can add a couple of introductory sentences, so that users understand where such a great newsletter comes from.
  • Next, write articles according to the following cliché:

<item> <title>title</title> <link>link to article</link><guid> Unique ID for each article + once again link to article </guid><pubDate> publication date in the format – Mon, 2 Feb 2019</item>.

To make RSS on the site and not get confused, here are little hints to make things easier:

  • News block between<item>…</items>tags.
  • Header between <title> ….</title>
  • A link to the full article <link>….</link>
  • An abstract of the article <description>….</description>
  • Publication date <pubDate>….</pubDate>
  • Unique number and link again <guid>….</guid>
  • After adding articles, carefully close <RSS> and <channel>tags (this function is performed by the “/” sign after the opening bracket). The tag opened first is closed last.
  • We save, after which we need to change the file extension to “. XML” with the type “All files”. The name must be the same as the ribbon, only in Latin letters without spaces (hyphen between words).
  • Validation. Self-written code is better to scan through a checker-service, there are many of them on the Web.
  • If everything is correct, then the question of how to add an RSS feed to the site, in front of you no longer stands. Copy the file to the main folder of your resource on ftp.

Congratulations, you have your handmade RSS-feed in front of you.

Now you need to monitor its status and functioning. You can not overload the feed, so when adding new articles, the old ones should be deleted.

This is a universal algorithm suitable for any site. If you work on the WordPress platform, all these processes can be automated. First of all, we should remember that RSS to the WordPress site is characterized by multichannel (the ability to generate as many feeds as you want in different formats).