<?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>Brit Gardner ::: Web Developer ::: Dallas, TX &#187; google reader</title>
	<atom:link href="http://britg.com/tags/google-reader/feed/" rel="self" type="application/rss+xml" />
	<link>http://britg.com</link>
	<description>The big yellow one&#039;s the sun.</description>
	<lastBuildDate>Sun, 10 Jan 2010 17:25:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Reader Shared Items in WP RSS Widget</title>
		<link>http://britg.com/2008/05/22/google-reader-shared-items-in-wp-rss-widget/</link>
		<comments>http://britg.com/2008/05/22/google-reader-shared-items-in-wp-rss-widget/#comments</comments>
		<pubDate>Thu, 22 May 2008 13:27:18 +0000</pubDate>
		<dc:creator>britg</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[google reader]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://britg.com/?p=37</guid>
		<description><![CDATA[I just added a default RSS widget to one of my sidebars and noticed that the links weren&#8217;t functioning correctly.  The source of the RSS feed is my google reader shared items and I think the format in which google sends the information is different than a normal RSS feed?  I don&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>I just added a default RSS widget to one of my sidebars and noticed that the links weren&#8217;t functioning correctly.  The source of the RSS feed is my google reader shared items and I think the format in which google sends the information is different than a normal RSS feed?  I don&#8217;t know enough about them to be sure.  All I know is that for some reason the link to the articles and the link to the sources of the articles are being concatenated together in the widget links.</p>
<p>Here&#8217;s a small 2-line fix I came up with if you&#8217;re familiar with php and the wordpress framework (version 2.5+).</p>
<p>In your <em>{wp home}/wp-includes/widgets.php</em> find the function <strong>wp_widget_rss_output(&#8230;)</strong>.  The first foreach() loop in the function should be <strong>foreach ($rss-&gt;items as $item ) {</strong> &#8230;  Directly after the open curly brace, place these two lines of code:</p>
<blockquote><p>$parts = explode(&#8216;http&#8217;,$item['link']);<br />
$item['link'] = &#8216;http&#8217;.$parts[1];</p></blockquote>
<p>Voila &#8211; that fixed the problem for me.  All it does is explode the link string by the delimeter &#8216;http&#8217; and rebuild the link using the first part.  It&#8217;s not a very extensible solution though, so I would only use it if you just want to use a google reader shared items feed for the source of an RSS widget.</p>
]]></content:encoded>
			<wfw:commentRss>http://britg.com/2008/05/22/google-reader-shared-items-in-wp-rss-widget/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
