We have what should be a fairly simple RSS feed: job postings. I want them ordered so that the most recently posted ones show up at the top of the feed. Should be simple, right? Only I can’t get it to work. It keeps showing me entries from November, but not the ones posted this morning. (Worse yet, the November entries have actually been CLOSED, and so when you click the link, you get a blank page.)
Here’s my code:
{assign_variable:master_weblog_name="job_bank"}
{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-%dT%H:%i:%s%Q"}</dc:date>
<admin:generatorAgent rdf:resource="http://expressionengine.com/" >
{exp:weblog:entries weblog="{master_weblog_name}" }
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link>{title_permalink=chifoo/job_bank_detail}</link>
<guid>{title_permalink=chifoo/job_bank_detail}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
<description>{exp:xml_encode}{summary}{body}{/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-%dT%H:%i:%s%Q"}</dc:date>
</item>
{/exp:weblog:entries}
</channel>
</rss>
{/exp:rss:feed}I pretty much just used the template provided with EE. I’ve stripped out all the weblog parameters, because changing them had zero impact on the output of my feed.
The only special thing: It’s a secure feed (members-only content), and requires a secure feed reader.
One weird thing: I just tested my feed in Safari, and it DOES work there! But neither Google homepage or reader displays it correctly.
Any ideas?
EE 1.6.8
Caching turned off for the RSS template
Caches just cleared.