I seem to be having terrible trouble with my RSS 2.0 feed. When people can get it to work at all (Google Reader won’t subscribe to it, for example), it isn’t updating with the latest content and shows at the latest, a post on 7th Nov. I’ve tried flushing the cache, both including and not including ‘dynamic_start="on”’ and so on. The Atom feed, however, appears to work and update.
To make matters more confusing, I’m using embeds to direct to different feeds in the hope that feeds won’t break for people subscribed to the old url. So in template group ‘blog’, I have a template ‘feed’ like this:
{if segment_3 == "rss2" or segment_3 == ""}
{embed="blog/rss2"}
{/if}
{if segment_3 == "atom"}
{embed="blog/atom"}
{/if}
Then the actual feeds are in templates ‘rss2’ and ‘atom’ respectively. I’ve modified this temporarily to point everything towards the atom feeds. My RSS feed template is below. Can anyone spot anything stupid I’ve done that’s broken it?
{assign_variable:master_weblog_name="blog"}
{exp:rss:feed weblog="{master_weblog_name}"}
<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
<link>{weblog_url}</link>
<description>{weblog_description}</description>
<dc:language>{weblog_language}</dc:language>
<dc:creator>{email}</dc:creator>
<dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
<dc:date>{gmt_date format="%Y-%m-
T;%H:%i:%s%Q"}</dc:date>
<admin:generatorAgent rdf:resource="http://www.pmachine.com/" />
{exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" disable="member_data|trackbacks"}
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link>{url_title_path="blog/archives"}</link>
<guid>{title_permalink=blog/index}#When:{gmt_entry_date format="%H:%i:&#xsZ;"}</guid>
<description>{exp:xml_encode}{exp:markdown}{body} {if extended != ""}<p>(Read more...)</p>{/if}{/exp:markdown}{/exp:xml_encode}</description>
<dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
<dc:date>{gmt_entry_date format="%Y-%m-
T;%H:%i:%s%Q"}</dc:date>
</item>
{/exp:weblog:entries}
</channel>
</rss>
{/exp:rss:feed}
