<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlackHC's Adventures in the Dev World &#187; RSS 2.0</title>
	<atom:link href="http://blog.blackhc.net/tag/rss-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.blackhc.net</link>
	<description>Just another weblog</description>
	<lastBuildDate>Wed, 16 Nov 2011 23:12:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to make WordPress display Full Text in RSS Feeds</title>
		<link>http://blog.blackhc.net/2009/01/how-to-make-wordpress-display-full-text-in-rss-feeds/</link>
		<comments>http://blog.blackhc.net/2009/01/how-to-make-wordpress-display-full-text-in-rss-feeds/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 10:46:17 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Personal Rantings]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Full Text]]></category>
		<category><![CDATA[RSS 2.0]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.blackhc.net/?p=317</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2009/01/how-to-make-wordpress-display-full-text-in-rss-feeds/" title="How to make WordPress display Full Text in RSS Feeds"></a>... and why WordPress Moderators are obviously idiots Today I got an email asking me to enable full text RSS feeds - so far so good, only when I activated the "Full Text" option nothing changed - neither in FireFox, &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2009/01/how-to-make-wordpress-display-full-text-in-rss-feeds/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2009/01/how-to-make-wordpress-display-full-text-in-rss-feeds/" title="How to make WordPress display Full Text in RSS Feeds"></a><h3>... and why WordPress Moderators are obviously idiots</h3>
<p>Today I got an email asking me to enable full text RSS feeds - so far so good, only when I activated the "Full Text" option nothing changed - neither in FireFox, nor in Google Reader, nor anywhere else. Only in <a href="http://blog.persistent.info/2007/10/feed-proxy-view-raw-rssatom-feed-data.html" target="_blank">Feed Proxy</a> I saw a &lt;content:encoded&gt; tag appear that contained the full text (including html tags), but the description still only contained the excerpt (without html tags).</p>
<p>Before I link you to the thread that made me conclude the statement in the post title, let me quote from the <a href="http://cyber.law.harvard.edu/rss/rss.html" target="_blank">RSS 2.0 specs</a>:</p>
<blockquote><p>A channel may contain any number of &lt;item&gt;s. An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story. <strong>An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed; see <a href="http://cyber.law.harvard.edu/rss/encodingDescriptions.html" target="_blank">examples</a>), and the link and title may be omitted.</strong> All elements of an item are optional, however at least one of title or description must be present.</p></blockquote>
<p>That said take a look at <a href="http://wordpress.org/support/topic/190901" target="_blank">http://wordpress.org/support/topic/190901</a> - having the problem described above and reading the replies, it just left me with one question:</p>
<p style="padding-left: 30px;"><strong>If Otto42 is a moderator, where does WordPress get its trolls from?</strong></p>
<p>The RSS Specs are pretty unspecific and blurry when it comes to the issue, one can at most point to <a href="http://www.feedvalidator.org/docs/warning/DuplicateDescriptionSemantics.html" target="_blank">http://www.feedvalidator.org/docs/warning/DuplicateDescriptionSemantics.html</a>, but the main issue I have is that the rants of this "moderator" don't help me fix my problem, because Google Reader and FireFox still don't display the full entries.</p>
<h3>A fix for it</h3>
<p>If you want to fix it, you can do the following (in WP 2.7):</p>
<p>Open up <strong>wp-includes/feed-rss2.php</strong> and change</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if (get_option('rss_use_excerpt')) : ?&gt;
&lt;description&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/description&gt;
&lt;?php else : ?&gt;
&lt;description&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/description&gt;
&lt;?php if ( strlen( $post-&gt;post_content ) &gt; 0 ) : ?&gt;
&lt;content:encoded&gt;&lt;![CDATA[&lt;?php the_content() ?&gt;]]&gt;&lt;/content:encoded&gt;
&lt;?php else : ?&gt;
&lt;content:encoded&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/content:encoded&gt;
&lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;</pre>
<p>to</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if (get_option('rss_use_excerpt')) : ?&gt;
&lt;description&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/description&gt;
&lt;?php else : ?&gt;
&lt;description&gt;&lt;![CDATA[&lt;?php the_content() ?&gt;]]&gt;&lt;/description&gt;
&lt;?php endif; ?&gt;</pre>
<p>Similarly, if you want to fix your comments, too, open <strong>wp-includes/feed-rss2-comments.php</strong> and change</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if ( post_password_required($comment_post) ) : ?&gt;
&lt;description&gt;&lt;?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?&gt;&lt;/description&gt;
&lt;content:encoded&gt;&lt;![CDATA[&lt;?php echo get_the_password_form() ?&gt;]]&gt;&lt;/content:encoded&gt;
&lt;?php else : // post pass ?&gt;
&lt;description&gt;&lt;?php comment_text_rss() ?&gt;&lt;/description&gt;
&lt;content:encoded&gt;&lt;![CDATA[&lt;?php comment_text() ?&gt;]]&gt;&lt;/content:encoded&gt;
&lt;?php endif; // post pass</pre>
<p>to</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if ( post_password_required($comment_post) ) : ?&gt;
&lt;description&gt;&lt;![CDATA[&lt;?php echo get_the_password_form() ?&gt;]]&gt;&lt;/description&gt;
&lt;?php else : // post pass ?&gt;
&lt;description&gt;&lt;![CDATA[&lt;?php comment_text() ?&gt;]]&gt;&lt;/description&gt;
&lt;?php endif; // post pass</pre>
<p>Cheers,<br />
Andreas</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2009/01/how-to-make-wordpress-display-full-text-in-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

