<?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>onenaught.com &#187; WordPress</title>
	<atom:link href="http://www.onenaught.com/posts/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.onenaught.com</link>
	<description>A blog on web standards, accessibility, css, javascript, xslt, and more</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:55:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
		<title>One Naught</title>
		<url>http://www.onenaught.com/wp-content/themes/onenaught/images/onenaught.png</url>
		<link>http://www.onenaught.com</link>
		<width>116</width>
		<height>130</height>
		<description>OneNaught.com</description>
	</image>		<item>
		<title>Adding a logo to your WordPress RSS Feed</title>
		<link>http://www.onenaught.com/posts/20/adding-a-logo-to-your-wordpress-rss-feed</link>
		<comments>http://www.onenaught.com/posts/20/adding-a-logo-to-your-wordpress-rss-feed#comments</comments>
		<pubDate>Tue, 07 Aug 2007 21:37:39 +0000</pubDate>
		<dc:creator>Anup Shah</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.onenaught.com/posts/20/adding-a-logo-to-your-wordpress-rss-feed</guid>
		<description><![CDATA[The default RSS feed template in Word Press does not provide the ability to set an image for the feed. Not all feed readers support it but some, such as bloglines, do so it can be useful to maintain a personal brand. Modifying the feed template file itself was not an ideal option for me (upgrades could overwrite that file). So here is one way you can still do it.]]></description>
			<content:encoded><![CDATA[<p><ins datetime="2007-12-08T11:03:41+00:00"><strong>Update December 8, 2007:</strong> It looks like this article inspired Terri Ann Swallow at NineDaysBlog to create <a href="http://blog.ninedays.org/2007/12/02/feed-image-wordpress-plugin/">a WordPress plugin to do what this article describes, for you</a>.</ins></p>
<p><ins datetime="2007-12-13T11:08:21+00:00"><strong>Update December 13, 2007:</strong> I gave the above WordPress plugin a go. Very nice. Try it out!</ins></p>
<p>So, I am still feeling my way around the Word Press templating system.</p>
<p>One thing I found with the default RSS feed template is that it did not provide the ability to set an image for the feed. Not all feed readers support it but some, such as bloglines, do so it can be useful to maintain a personal brand.</p>
<p>Most support articles I found said you can just edit the wp-includes/feed-rss2.php template.</p>
<p>I didn&#8217;t want to do that because I think the updates that the hosting company can apply will override such changes. I would prefer to keep my changes localized to my theme area, so it is easy to simply put my entire theme back in if a major update is performed which would otherwise trash any core custom changes.</p>
<p>So I just started looking at some of the template and Word Press code, and figured I can put something like this into my theme directory&#8217;s functions.php:</p>
<p><span id="more-20"></span></p>
<pre><code>add_action('rss2_head', 'onenaught_addRssImage');

function onenaught_addRssImage() {
  echo "&lt;image&gt;
    &lt;title&gt;One Naught&lt;/title&gt;
    &lt;url&gt;" . get_bloginfo('template_directory') . "/images/onenaught.png&lt;/url&gt;
    &lt;link&gt;" . get_bloginfo('url') ."&lt;/link&gt;
    &lt;width&gt;116&lt;/width&gt;
    &lt;height&gt;130&lt;/height&gt;
    &lt;description&gt;OneNaught.com&lt;/description&gt;
    &lt;/image&gt;";
}</code></pre>
<p>(I prefer to prefix my functions with the theme name, in this case, onenaught_. You can call yours whatever you want.)</p>
<p>You would then just need to edit the various RSS element values (e.g. your image location, dimensions, etc).</p>
<p>You could do something similar for the Atom feed too if you want. The action you hook into is called &#8216;atom_head&#8217;, so you would have </p>
<pre><code>add_action('atom_head', 'onenaught_addAtomImage');

function onenaught_addAtomImage() {
  echo "&lt;icon&gt;http://example.org/favicon.ico&lt;/icon&gt;
    &lt;logo&gt;http://example.org/logo.png&lt;/logo&gt;"
}</code></pre>
<p>I have not tested the Atom version, but the RSS one seems to work!</p>
<p>Hope that helps someone out there!</p>
<p>For some additional details, here is a useful link from Jonathan Snook: <a href="http://snook.ca/archives/rss/add_logo_to_feed/">Add a logo to your feed</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onenaught.com/posts/20/adding-a-logo-to-your-wordpress-rss-feed/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
