<?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>Comments on: 解决了WordPress sidebar widget中recent comments的显示问题</title>
	<atom:link href="http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/</link>
	<description>谁终将声震人间，必长久深自缄默</description>
	<pubDate>Wed, 07 Jan 2009 02:15:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jerry</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-1050</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Thu, 03 Jan 2008 17:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-1050</guid>
		<description>
请修改wordpress/wp-includes/widgets.php的第878行
&lt;coolcode lang="PHP"&gt;
$comments = $wpdb-&gt;get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb-&gt;comments WHERE comment_approved = '1'  ORDER BY comment_date_gmt DESC LIMIT $number");
&lt;/coolcode&gt;
改成
&lt;coolcode lang="PHP"&gt;
$comments = $wpdb-&gt;get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb-&gt;comments WHERE comment_approved = '1' AND comment_type&lt;&gt;'pingback' ORDER BY comment_date_gmt DESC LIMIT $number");
&lt;/coolcode&gt;
应该就行了
如果想显示评论内容请参考上面的附件……
PS.域名不错</description>
		<content:encoded><![CDATA[<p>请修改wordpress/wp-includes/widgets.php的第878行</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #00008b;">$comments</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$wpdb</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">get_results</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM </span><span style="color: #00008b;">$wpdb</span><span style="color: Red;">-&gt;comments WHERE comment_approved = '1'&nbsp; ORDER BY comment_date_gmt DESC LIMIT </span><span style="color: #00008b;">$number</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
</ol></div>
<p>改成</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #00008b;">$comments</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$wpdb</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">get_results</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM </span><span style="color: #00008b;">$wpdb</span><span style="color: Red;">-&gt;comments WHERE comment_approved = '1' AND comment_type&lt;&gt;'pingback' ORDER BY comment_date_gmt DESC LIMIT </span><span style="color: #00008b;">$number</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
</ol></div>
<p>应该就行了<br />
如果想显示评论内容请参考上面的附件……<br />
PS.域名不错</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 江南游子</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-1048</link>
		<dc:creator>江南游子</dc:creator>
		<pubDate>Thu, 03 Jan 2008 06:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-1048</guid>
		<description>我想问一下，如何让wp自带的widget中recent comments不要显示trackback和ping? 你可以访问我的站点，看看右上角，我只想显示comments, 但是wp自作主张地把trackback/ping都显示出来了。

谢谢</description>
		<content:encoded><![CDATA[<p>我想问一下，如何让wp自带的widget中recent comments不要显示trackback和ping? 你可以访问我的站点，看看右上角，我只想显示comments, 但是wp自作主张地把trackback/ping都显示出来了。</p>
<p>谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qg</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-98</link>
		<dc:creator>qg</dc:creator>
		<pubDate>Wed, 15 Aug 2007 04:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-98</guid>
		<description>乱码没发生。但对数字截取敏感！后把GB2312改成UTF-8后就正常了！呵呵！thanks！</description>
		<content:encoded><![CDATA[<p>乱码没发生。但对数字截取敏感！后把GB2312改成UTF-8后就正常了！呵呵！thanks！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-97</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Tue, 14 Aug 2007 09:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-97</guid>
		<description>如果还有乱码……看来我解决不了了</description>
		<content:encoded><![CDATA[<p>如果还有乱码……看来我解决不了了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-96</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Tue, 14 Aug 2007 09:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-96</guid>
		<description>服了……把这个载下来解压覆盖wp-includes\widgets.php
http://www.JerryHong.com/wp-content/uploads/widgets.rar
如果需要微调请改698行的那个15</description>
		<content:encoded><![CDATA[<p>服了……把这个载下来解压覆盖wp-includes\widgets.php<br />
<a href="http://www.JerryHong.com/wp-content/uploads/widgets.rar" rel="nofollow">http://www.JerryHong.com/wp-content/uploads/widgets.rar</a><br />
如果需要微调请改698行的那个15</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: QG</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-95</link>
		<dc:creator>QG</dc:creator>
		<pubDate>Tue, 14 Aug 2007 09:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-95</guid>
		<description>忘记跟你说了， 我php还未入门！根本就不知道substr(the_title(),0,15);应该放哪里？</description>
		<content:encoded><![CDATA[<p>忘记跟你说了， 我php还未入门！根本就不知道substr(the_title(),0,15);应该放哪里？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-94</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Tue, 14 Aug 2007 08:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-94</guid>
		<description>在function wp_widget_recent_entries($args)里，试试substr(the_title(),0,15);
若中文出现乱码可参考我文章里那个mb_substr()函数</description>
		<content:encoded><![CDATA[<p>在function wp_widget_recent_entries($args)里，试试substr(the_title(),0,15);<br />
若中文出现乱码可参考我文章里那个mb_substr()函数</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: QG</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-93</link>
		<dc:creator>QG</dc:creator>
		<pubDate>Tue, 14 Aug 2007 06:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-93</guid>
		<description>能告诉具体改一个语句吗？让它最新文章标题只显示15个字符，评论格式同你站一样！</description>
		<content:encoded><![CDATA[<p>能告诉具体改一个语句吗？让它最新文章标题只显示15个字符，评论格式同你站一样！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-92</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Tue, 14 Aug 2007 05:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-92</guid>
		<description>@qg:
wp-includes/widgets.php.
WP默认的显示确实太丑了;)</description>
		<content:encoded><![CDATA[<p>@qg:<br />
wp-includes/widgets.php.<br />
WP默认的显示确实太丑了;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qg</title>
		<link>http://www.jerryhong.com/2007/05/11/%e8%a7%a3%e5%86%b3%e4%ba%86sidebar-widget%e4%b8%adrecent-comments%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/comment-page-1/#comment-91</link>
		<dc:creator>qg</dc:creator>
		<pubDate>Mon, 13 Aug 2007 20:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.JerryHong.com/?p=11#comment-91</guid>
		<description>你好！怎么让Recent Comments 、Recent Posts显示固定的字符，10字的仅仅让它显示5个 。应该修改哪个文件？我刚接触wp。</description>
		<content:encoded><![CDATA[<p>你好！怎么让Recent Comments 、Recent Posts显示固定的字符，10字的仅仅让它显示5个 。应该修改哪个文件？我刚接触wp。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
