<?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>FVF.me&#039;Ye &#187; pingbacks</title>
	<atom:link href="http://fvf.me/tag/pingbacks/feed" rel="self" type="application/rss+xml" />
	<link>http://fvf.me</link>
	<description>我是孤独的根号5</description>
	<lastBuildDate>Mon, 19 Sep 2011 12:10:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>分开显示Trackbacks和评论列表</title>
		<link>http://fvf.me/wordpress/tips/wordpress-separately-trackbacks-pingbacks-list-and-comments.html</link>
		<comments>http://fvf.me/wordpress/tips/wordpress-separately-trackbacks-pingbacks-list-and-comments.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 11:00:22 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[pingbacks]]></category>
		<category><![CDATA[trackbacks]]></category>
		<category><![CDATA[分开]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress-separately-trackbacks-pingbacks-list-and-comments.html</guid>
		<description><![CDATA[今天在搞主题的评论，准备把普通的评论和trackbacks / pingbacks分开。嘿嘿！在Google上找了好几页，发现了很多方法，挑了最简单的方法啊！就是下面的方法了！ 第一步 在single.php文件中找到 &#60;?php comments_template(&#39;&#39;)?&#62; 改成 &#60;?php comments_template(&#39;&#39;, true); ?&#62; 第二步 在comments.php文件中找到 &#60;?php foreach ($comments as $comment) : ?&#62; 在之后添加以下代码 &#60;?php $comment_type = get_comment_type(); ?&#62; &#60;?php if($comment_type == &#39;comment&#39;) { ?&#62; 第三步 找到 &#60;?php endforeach; ?&#62; 在之前添加以下代码 &#60;?php } else { $trackback = true; } ?&#62; 第四步 找到 &#60;?php else : ?&#62; 在之前添加以下代码 [...]]]></description>
			<content:encoded><![CDATA[<p>今天在搞主题的评论，准备把普通的评论和trackbacks / pingbacks分开。嘿嘿！在Google上找了好几页，发现了很多方法，挑了最简单的方法啊！就是下面的方法了！</p>
<p>第一步</p>
<p>在single.php文件中找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comments_template</span>(<span style="color: rgb(187, 187, 0); </p>
<p>">&#39;&#39;</span>)<span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>改成</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comments_template</span>(<span style="color: rgb(187, 187, 0); </p>
<p>">&#39;&#39;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">true</span>); <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>第二步</p>
<p>在comments.php文件中找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, </p>
<p>204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) </p>
<p><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>在之后添加以下代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(204, 204, 0); ">$comment_type</span> <span style="color: rgb(192, 192, 192); </p>
<p>">=</span> <span style="color: rgb(192, 192, 192); ">get_comment_type</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(204, 204, </p>
<p>0); ">$comment_type</span> <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(187, 187, 0); ">&#39;comment&#39;</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>第三步</p>
<p>找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">endforeach</span>; <span style="color: rgb</p>
<p>(255, 255, 255); ">?&gt;</span></div>
<p>在之前添加以下代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: rgb(255, 255, 0); font-weight: </p>
<p>bold; ">else</span> <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(204, 204, 0); ">$trackback</span> <span style="color: rgb(192, </p>
<p>192, 192); ">=</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">true</span>; <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>第四步</p>
<p>找到</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">else</span> <span style="color: rgb(192, 192, </p>
<p>192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>在之前添加以下代码</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(204, 204, </p>
<p>0); ">$trackback</span> <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">true</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: </p>
<p>bold; ">&lt;h3&gt;</span><span style="color: rgb(192, 192, 192); ">Trackbacks</span><span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">&lt;/h3&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;ol&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?</p>
<p>php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) <span style="color: rgb(192, 192, </p>
<p>192); ">:</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: </p>
<p>rgb(204, 204, 0); ">$comment_type</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); </p>
<p>">get_comment_type</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(204, 204, 0); ">$comment_type</span> <span style="color: rgb(192, 192, </p>
<p>192); ">!=</span> <span style="color: rgb(187, 187, 0); ">&#39;comment&#39;</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: </p>
<p>rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;li&gt;</span><span style="color: rgb(255, 255, 255); </p>
<p>">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comment_author_link</span>() <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 255); ">&amp;nbsp;</span><span style="color: rgb(192, 192, 192); ">写于</span><span style="color: rgb(255, 255, 255); </p>
<p>">&amp;nbsp;</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comment_date</span>(<span style="color: rgb(187, 187, 0); ">&#39;Y年m月d日 l&#39;</span>) <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 255); </p>
<p>">&amp;nbsp;</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comment_time</span>() <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> </p>
<p><span style="color: rgb(192, 192, 192); ">edit_comment_link</span>(<span style="color: rgb(187, 187, 0); ">&#39;编辑&#39;</span><span style="color: rgb(192, </p>
<p>192, 192); ">,</span><span style="color: rgb(187, 187, 0); ">&#39;[&#39;</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(187, </p>
<p>187, 0); ">&#39;]&#39;</span>); <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">&lt;/li&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: </p>
<p>rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">endforeach</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">&lt;/ol&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: </p>
<p>rgb(255, 255, 255); ">?&gt;</span></div>
<p>保存，刷新一下就可以看到了trackbacks已不在评论列表中并显示底下！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/wordpress-separately-trackbacks-pingbacks-list-and-comments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

