Log in Sign up

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?


3 years ago, 2 replies   Edit 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 3 years ago · Edit 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 3 years ago · Edit answer