{exp:rss:feed channel="YOUR CHANNELS OR CHANNEL IN HERE" debug="yes" status="THE STATUS OF THE POSTS YOU WANT TO LIST"}
<?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/"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="YOUR RSS FEED" rel="self" type="application/rss+xml" />
<title>YOUR TITLE</title>
<link>YOUR URL</link>
<description>YOUR DESCRIPTION</description>
<dc:language>{channel_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:channel:entries channel="YOUR CHANNELS OR CHANNEL IN HERE" limit="10" dynamic_start="on" disable="member_data"}
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link>{comment_url_title_auto_path}</link>
<guid>{comment_url_title_auto_path}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
<description><![CDATA[{body}]]></description>
<dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
</item>
{/exp:channel:entries}
</channel>
</rss>
{/exp:rss:feed}
Note: You’ll need to put your own text or variable where I have put capital letters. I have added a couple things to the feed:
- atom:link (this makes it valid to W3C)
- status=”” within the rss tag at the top (many people reporting issues with RSS and this seems to help)
Category:EE2
