<?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/"
		>
<channel>
	<title>《WordPress 非插件调用最新 Twitter》的评论</title>
	<atom:link href="http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/feed" rel="self" type="application/rss+xml" />
	<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html</link>
	<description>My Life, My Studio...</description>
	<lastBuildDate>Tue, 22 May 2012 11:41:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：小杜博客</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-55521</link>
		<dc:creator>小杜博客</dc:creator>
		<pubDate>Wed, 30 Jun 2010 13:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-55521</guid>
		<description>又来看这个文章了，哈哈~</description>
		<content:encoded><![CDATA[<p>又来看这个文章了，哈哈~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：万戈</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-55511</link>
		<dc:creator>万戈</dc:creator>
		<pubDate>Wed, 30 Jun 2010 13:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-55511</guid>
		<description>echofon、api、web、手机，多种方法都会用到</description>
		<content:encoded><![CDATA[<p>echofon、api、web、手机，多种方法都会用到</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Heson</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-55506</link>
		<dc:creator>Heson</dc:creator>
		<pubDate>Wed, 30 Jun 2010 12:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-55506</guid>
		<description>你现在怎么上 twitter啊？</description>
		<content:encoded><![CDATA[<p>你现在怎么上 twitter啊？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：万戈</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-50173</link>
		<dc:creator>万戈</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-50173</guid>
		<description>哈哈，所以我一般很少插</description>
		<content:encoded><![CDATA[<p>哈哈，所以我一般很少插</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：侯宁波</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-50157</link>
		<dc:creator>侯宁波</dc:creator>
		<pubDate>Thu, 03 Jun 2010 13:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-50157</guid>
		<description>wange的意思是 插上去就影响心情，还是不插了</description>
		<content:encoded><![CDATA[<p>wange的意思是 插上去就影响心情，还是不插了</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：xiao3</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-44259</link>
		<dc:creator>xiao3</dc:creator>
		<pubDate>Sat, 01 May 2010 15:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-44259</guid>
		<description>用这个地址怎么输出单条tweet呢？</description>
		<content:encoded><![CDATA[<p>用这个地址怎么输出单条tweet呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：托比天空</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-36567</link>
		<dc:creator>托比天空</dc:creator>
		<pubDate>Wed, 17 Mar 2010 12:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-36567</guid>
		<description>哎……
没有时间鼓捣了 ……
遗憾，，，，</description>
		<content:encoded><![CDATA[<p>哎……<br />
没有时间鼓捣了 ……<br />
遗憾，，，，</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：keelii</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-33895</link>
		<dc:creator>keelii</dc:creator>
		<pubDate>Thu, 25 Feb 2010 05:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-33895</guid>
		<description>PHP在输出的时候没有把&quot;&amp;quot；&quot;转换成引号(“)
晕！前面打成英文的;还自动转成了绰号</description>
		<content:encoded><![CDATA[<p>PHP在输出的时候没有把"&amp;quot；"转换成引号(“)<br />
晕！前面打成英文的;还自动转成了绰号</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：keelii</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-33894</link>
		<dc:creator>keelii</dc:creator>
		<pubDate>Thu, 25 Feb 2010 05:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-33894</guid>
		<description>我看过上次那个代码了，有个小bug：无法通过W3C的html验证。PHP在输出的时候没有把&quot;转换成引号(&quot;)。我改了一下，貌似可以通过验证了！代码如下：
&lt;?php
// Your twitter username.
$username = &quot;keelii&quot;;
// Prefix - some text you want displayed before your latest tweet.
// (HTML is OK, but be sure to escape quotes with backslashes: for example href=\&quot;link.html\&quot;)
// Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)
$suffix = &quot;&quot;;
$feed = &quot;http://search.twitter.com/search.atom?q=from:&quot; . $username . &quot;&amp;rpp=1&quot;;
function parse_feed($feed) {
    $stepOne = explode(&quot;&quot;, $feed);
    $stepTwo = explode(&quot;&quot;, $stepOne[1]);
    $tweet = $stepTwo[0];
    $tweet = str_replace(&quot;&lt;&quot;, &quot;&quot;, $tweet);
    $tweet = str_replace(&quot;&quot;&quot;, &quot;\&quot;&quot;, $tweet);//repair for html validation
    return $tweet;
}
$twitterFeed = file_get_contents($feed);

echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);
?&gt;</description>
		<content:encoded><![CDATA[<p>我看过上次那个代码了，有个小bug：无法通过W3C的html验证。PHP在输出的时候没有把&quot;转换成引号(")。我改了一下，貌似可以通过验证了！代码如下：<br />
&lt;?php<br />
// Your twitter username.<br />
$username = &quot;keelii&quot;;<br />
// Prefix - some text you want displayed before your latest tweet.<br />
// (HTML is OK, but be sure to escape quotes with backslashes: for example href=\&quot;link.html\&quot;)<br />
// Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)<br />
$suffix = &quot;&quot;;<br />
$feed = &quot;<a href="http://search.twitter.com/search.atom?q=from:&#038;quot" rel="nofollow">http://search.twitter.com/search.atom?q=from:&#038;quot</a>; . $username . &quot;&amp;rpp=1&quot;;<br />
function parse_feed($feed) {<br />
    $stepOne = explode(&quot;", $feed);<br />
    $stepTwo = explode("", $stepOne[1]);<br />
    $tweet = $stepTwo[0];<br />
    $tweet = str_replace("&lt;", "", $tweet);<br />
    $tweet = str_replace("&quot;", "\"", $tweet);//repair for html validation<br />
    return $tweet;<br />
}<br />
$twitterFeed = file_get_contents($feed);</p>
<p>echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：万戈</title>
		<link>http://wange.im/output-latest-twitter-to-wordpress-without-plugin.html/comment-page-1#comment-33003</link>
		<dc:creator>万戈</dc:creator>
		<pubDate>Sat, 13 Feb 2010 11:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2686#comment-33003</guid>
		<description>恩，任兄已经传授过我了，非常之好用，只是我还在学习阶段，想尝试更多的方法，昨天还申请了GAE搭了个玩，嘿嘿</description>
		<content:encoded><![CDATA[<p>恩，任兄已经传授过我了，非常之好用，只是我还在学习阶段，想尝试更多的方法，昨天还申请了GAE搭了个玩，嘿嘿</p>
]]></content:encoded>
	</item>
</channel>
</rss>

