Your sites Log in Sign up Menu

How to recreate the RSS feed

I deleted the RSS page by mistake. When I created a new RSS page and linked to to the "/rss" URL, i get a "Page not found" error.

How can I recreate the RSS button?


2 years ago, 2 replies   Improve this question

The URL of your site's RSS feed is /feed.rss by default – if you add a new link to your site's menu pointing to /feed.rss you should be sorted

Answered 2 years ago · Improve this answer

In situations like this I go to the template archives and copy what I need. Here's what the feeds.rss file looks like:

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
  <title><![CDATA[ {{{title}}}]]></title>
  <link>{{{blogURL}}}</link>
  <atom:link href="{{{blogURL}}}/feed.rss" rel="self" type="application/rss+xml"/>
  <description><![CDATA[ The feed of updates to {{{title}}} ]]></description>
  {{#recentEntries}}
  <item> 
    <title><![CDATA[ {{{title}}} ]]></title>
    <link>{{{absoluteURL}}}</link>
    <guid>{{{absoluteURL}}}</guid>
    {{! RSS feeds need a RFC 822 date}}
    <pubDate>{{#formatDate}}ddd, DD MMM YYYY HH:mm:ss ZZ{{/formatDate}}</pubDate>
    <dc:creator><![CDATA[ {{{title}}} ]]></dc:creator>
    <description><![CDATA[ {{#absoluteURLs}} {{{body}}} {{/absoluteURLs}} ]]></description>
  </item>
  {{/recentEntries}}
</channel>
</rss>
Answered 2 years ago · Improve this answer