<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" 
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Customizing WordPress feed content</title>
	<atom:link href="http://www.bioneural.net/2008/04/13/customizing-wordpress-feed-content/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-&amp;seed_title=Customizing+WordPress+feed+content</link>
	<description>bioneural.net is for stuff worth sharing: commentary by Bruce McKenzie. Major topics covered are gadgets, informatics, Internet, Mac, mobile, musings, New Zealand, photography, Project Koru, quicklinks, rant, rave, travel and Windows</description>
	<lastBuildDate>Sun, 07 Mar 2010 06:49:55 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bruce</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-78661&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-78661</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 14 Dec 2009 19:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-78661</guid>
		<description>@Dylan, I hadn&#039;t noticed this wasn&#039;t working (or when it stopped working). In fact it&#039;s hard to find any client software that displays a feed image: most seem to use the site favicon. I&#039;m not 100% clear about what you&#039;re asking: did you see the tip about using FeedBurner to add a &lt;em&gt;feed&lt;/em&gt; image? If you&#039;re wanting to add an &lt;em&gt;item level&lt;/em&gt; image within the loop, however, see the section above on &lt;em&gt;Adding a content license&lt;/em&gt; in which I insert an CC icon into each feed item.</description>
		<content:encoded><![CDATA[<p>@Dylan, I hadn't noticed this wasn't working (or when it stopped working). In fact it's hard to find any client software that displays a feed image: most seem to use the site favicon. I'm not 100% clear about what you're asking: did you see the tip about using FeedBurner to add a <em>feed</em> image? If you're wanting to add an <em>item level</em> image within the loop, however, see the section above on <em>Adding a content license</em> in which I insert an CC icon into each feed item.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dylan</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-78660&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-78660</link>
		<dc:creator>dylan</dc:creator>
		<pubDate>Mon, 14 Dec 2009 17:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-78660</guid>
		<description>Hi,

I am trying to use the addfilter function but I need to add a line within the item
tag of the feed-rss2.php file in Wordpress. 

Basically, just after the loop starts in between &quot;link&quot; and &quot;comments&quot; within the &quot;item&quot; tag

I tried your method for adding an image but to no avail. I think I need to add it after the rss2_head in . Is this possible?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to use the addfilter function but I need to add a line within the item<br />
tag of the feed-rss2.php file in Wordpress. </p>
<p>Basically, just after the loop starts in between "link" and "comments" within the "item" tag</p>
<p>I tried your method for adding an image but to no avail. I think I need to add it after the rss2_head in . Is this possible?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Submarine</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76634&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76634</link>
		<dc:creator>Submarine</dc:creator>
		<pubDate>Thu, 17 Apr 2008 15:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76634</guid>
		<description>Bruce, here is a &lt;a href=&quot;http://categoryicons.wordpress.com/2008/03/31/error-in-category-icons-you-must-deactivate-and-reactivate-this-plugin/&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt; to a post I wrote about this error.

</description>
		<content:encoded><![CDATA[<p>Bruce, here is a <a href="http://categoryicons.wordpress.com/2008/03/31/error-in-category-icons-you-must-deactivate-and-reactivate-this-plugin/" rel="nofollow">link</a> to a post I wrote about this error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76631&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76631</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Wed, 16 Apr 2008 22:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76631</guid>
		<description>Thanks Submarine. I tried this, disabling my above customizations, turning off the AntiLeech plugin in case it was interfering... but the best I could do was the following error on feed validation:

&lt;blockquote&gt;
Error in Category Icons : you must deactivate and reactivate this plugin.
&lt;/blockquote&gt;

Deactivating/ reactivating had no effect.</description>
		<content:encoded><![CDATA[<p>Thanks Submarine. I tried this, disabling my above customizations, turning off the AntiLeech plugin in case it was interfering... but the best I could do was the following error on feed validation:</p>
<blockquote><p>
Error in Category Icons : you must deactivate and reactivate this plugin.
</p></blockquote>
<p>Deactivating/ reactivating had no effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Submarine</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76628&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76628</link>
		<dc:creator>Submarine</dc:creator>
		<pubDate>Wed, 16 Apr 2008 21:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76628</guid>
		<description>Hi Bruce,

to add category icons in the feeds, I tried this and it worked (I don&#039;t know if the code will appear correctly) :

&lt;code&gt;
function bm_caticons_excerpt_rss($content) {
    $content = get_cat_icon(&#039;echo=false&amp;link=false&#039;).&#039;&#039;.$content;
    return $content;
}
add_filter(&#039;the_excerpt_rss&#039;,&#039;bm_caticons_excerpt_rss&#039;);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Bruce,</p>
<p>to add category icons in the feeds, I tried this and it worked (I don't know if the code will appear correctly) :</p>
<p><code><br />
function bm_caticons_excerpt_rss($content) {<br />
    $content = get_cat_icon('echo=false&amp;link=false').''.$content;<br />
    return $content;<br />
}<br />
add_filter('the_excerpt_rss','bm_caticons_excerpt_rss');<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76624&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76624</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 14 Apr 2008 17:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76624</guid>
		<description>&lt;blockquote&gt;This Decription tag must be where WP puts the Tagline then&lt;/blockquote&gt;

Yes, WP properly inserts the tagline/ feed description via &lt;code&gt;&lt;?php bloginfo(&quot;description&quot;) ?&gt;&lt;/code&gt; in theme/header.php and &lt;code&gt;&lt;?php bloginfo_rss(&quot;description&quot;) ?&gt;&lt;/code&gt; in wp-includes/feed-rss2.php.

Adding more tags in &lt;em&gt;Reading Settings&lt;/em&gt; won&#039;t make it any more valid D. since you still can&#039;t nest &lt;code&gt;&lt;image&gt;&lt;/code&gt; inside &lt;code&gt;&lt;description&gt;&lt;/code&gt;; they should be on the same level inside &lt;code&gt;&lt;channel&gt;&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<blockquote><p>This Decription tag must be where WP puts the Tagline then</p></blockquote>
<p>Yes, WP properly inserts the tagline/ feed description via <code>&lt;?php bloginfo("description") ?&gt;</code> in theme/header.php and <code>&lt;?php bloginfo_rss("description") ?&gt;</code> in wp-includes/feed-rss2.php.</p>
<p>Adding more tags in <em>Reading Settings</em> won't make it any more valid D. since you still can't nest <code>&lt;image&gt;</code> inside <code>&lt;description&gt;</code>; they should be on the same level inside <code>&lt;channel&gt;</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76623&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76623</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 14 Apr 2008 16:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76623</guid>
		<description>Yep, seen that. I checked it in most readers I could think of, when designing the Demeter rss.xsl files, and it seems to work :)

This &lt;em&gt;Decription&lt;/em&gt; tag must be where WP puts the Tagline then, I suppose I could wrap it in more tags... The other required sub-elements can be as for the main feed.</description>
		<content:encoded><![CDATA[<p>Yep, seen that. I checked it in most readers I could think of, when designing the Demeter rss.xsl files, and it seems to work :)</p>
<p>This <em>Decription</em> tag must be where WP puts the Tagline then, I suppose I could wrap it in more tags... The other required sub-elements can be as for the main feed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76622&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76622</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 14 Apr 2008 13:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76622</guid>
		<description>I just tried subscribing to your feed in Bloglines D.: the feed description is &quot;&lt;img src=&quot;http://david-hall.net/images/gravatar.png&quot; /&gt;~ artist in nature ~&quot; and, interestingly, your feed image &lt;em&gt;does&lt;/em&gt; show.

However, viewing your XML source in NNW you have this nested in the &lt;description&gt; tag. The spec requires a feed image to be within an &lt;image&gt; tag and, if that is used, with 3 required sub-elements for url, title , and link. Check on Google for XML examples (e.g. &lt;a href=&quot;http://www.ibm.com/developerworks/xml/library/x-rss20/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;) to be convinced of the uniqueness of your approach ;-)</description>
		<content:encoded><![CDATA[<p>I just tried subscribing to your feed in Bloglines D.: the feed description is "&lt;img src="http://david-hall.net/images/gravatar.png" /&gt;~ artist in nature ~" and, interestingly, your feed image <em>does</em> show.</p>
<p>However, viewing your XML source in NNW you have this nested in the &lt;description&gt; tag. The spec requires a feed image to be within an &lt;image&gt; tag and, if that is used, with 3 required sub-elements for url, title , and link. Check on Google for XML examples (e.g. <a href="http://www.ibm.com/developerworks/xml/library/x-rss20/" rel="nofollow">here</a>) to be convinced of the uniqueness of your approach ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76621&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76621</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 14 Apr 2008 12:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76621</guid>
		<description>I&#039;ve been using this for years - as I don&#039;t use the straplines/sub headers - RSS 2 Specs say &quot;&lt;image&gt; is an optional sub-element of &lt;channel&gt;&quot; - so is that within an element within the channel or does it really want a separate element?

Setting the excerpt can be far more descriptive in isolation - depends to a large degree on which news reader you use of course.

</description>
		<content:encoded><![CDATA[<p>I've been using this for years - as I don't use the straplines/sub headers - RSS 2 Specs say "&lt;image&gt; is an optional sub-element of &lt;channel&gt;" - so is that within an element within the channel or does it really want a separate element?</p>
<p>Setting the excerpt can be far more descriptive in isolation - depends to a large degree on which news reader you use of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F%23comment-76620&amp;seed_title=Customizing+WordPress+feed+content/comment-page-1/#comment-76620</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 14 Apr 2008 09:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bioneural.net/?p=920#comment-76620</guid>
		<description>&lt;blockquote&gt;an image link in the General Settings - Tagline&lt;/blockquote&gt;

Interesting idea D. Although this does trick the Feed Validator an img inside &lt;code&gt;&lt;description&gt;&lt;/code&gt; is not consistent with the RSS 2.0 spec, which specifies a &lt;em&gt;required&lt;/em&gt; &quot;Phrase or sentence describing the channel&quot; and puts feed images inside a separate &lt;code&gt;&lt;image&gt;&lt;/code&gt; channel sub-element. Furthermore, any URL entered as a tagline is rendered as text in the blog header.

[quote post=&quot;920&quot;]Also, if you want a different &quot;excerpt&quot;...write a different one in the &quot;Excerpt&quot; box ;)

Correct. I&#039;ve always put my &quot;intro&quot; into ecto&#039;s main editing area, with the main body of the post in the &quot;Extended&quot; editing area. When I post these two areas are automatically separated by &lt;code&gt;&lt;!--more--&gt;&lt;/code&gt;. But ecto also has a &quot;Summary&quot; editing area, which can contain a different version of the article known as the &quot;excerpt&quot;. I&#039;ve never used this, but if I did I imagine the contents would be used for &lt;code&gt;the_excerpt()&lt;/code&gt; in place of the post intro. 

So technically I guess I&#039;m not using &lt;code&gt;the_excerpt()&lt;/code&gt; in my feeds or on my blog, but rather &lt;em&gt;Summary&lt;/em&gt; in &lt;em&gt;Reading Settings&lt;/em&gt; means &quot;intro&quot; and &lt;em&gt;Full text&lt;/em&gt; means &quot;intro + extended&quot; using only the &lt;code&gt;the_content()&lt;/code&gt;. Confusing, huh? 

I wonder how many other folk using offline editors are doing this without realizing the bit of their post before &lt;code&gt;&lt;!--more--&gt;&lt;/code&gt; is part of &lt;code&gt;the_content()&lt;/code&gt; and not &lt;code&gt;the_excerpt()&lt;/code&gt;? This would explain why I had to set &lt;em&gt;Full text&lt;/em&gt; to get my hack to work.</description>
		<content:encoded><![CDATA[<blockquote><p>an image link in the General Settings - Tagline</p></blockquote>
<p>Interesting idea D. Although this does trick the Feed Validator an img inside <code>&lt;description&gt;</code> is not consistent with the RSS 2.0 spec, which specifies a <em>required</em> "Phrase or sentence describing the channel" and puts feed images inside a separate <code>&lt;image&gt;</code> channel sub-element. Furthermore, any URL entered as a tagline is rendered as text in the blog header.</p>
<p>[quote post="920"]Also, if you want a different "excerpt"...write a different one in the "Excerpt" box ;)</p>
<p>Correct. I've always put my "intro" into ecto's main editing area, with the main body of the post in the "Extended" editing area. When I post these two areas are automatically separated by <code>&lt;!--more--&gt;</code>. But ecto also has a "Summary" editing area, which can contain a different version of the article known as the "excerpt". I've never used this, but if I did I imagine the contents would be used for <code>the_excerpt()</code> in place of the post intro. </p>
<p>So technically I guess I'm not using <code>the_excerpt()</code> in my feeds or on my blog, but rather <em>Summary</em> in <em>Reading Settings</em> means "intro" and <em>Full text</em> means "intro + extended" using only the <code>the_content()</code>. Confusing, huh? </p>
<p>I wonder how many other folk using offline editors are doing this without realizing the bit of their post before <code>&lt;!--more--&gt;</code> is part of <code>the_content()</code> and not <code>the_excerpt()</code>? This would explain why I had to set <em>Full text</em> to get my hack to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
