<?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>WordPress Hacks &#187; WordPress Trackbacks</title>
	<atom:link href="http://wphacks.com/tag/wordpress-trackbacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Fri, 25 May 2012 20:07:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>The Great Comment Debate</title>
		<link>http://wphacks.com/the-great-comment-debate/</link>
		<comments>http://wphacks.com/the-great-comment-debate/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 23:07:31 +0000</pubDate>
		<dc:creator>Alex Denning</dc:creator>
				<category><![CDATA[Poll]]></category>
		<category><![CDATA[Blog Comments]]></category>
		<category><![CDATA[Comments Poll]]></category>
		<category><![CDATA[WordPress Comments]]></category>
		<category><![CDATA[WordPress Poll]]></category>
		<category><![CDATA[WordPress Trackbacks]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=2207</guid>
		<description><![CDATA[Blogs are built around comments. It&#8217;s always fun and rewarding to see your blog have a lot of comments on it. Trouble is, comments attract spam and it&#8217;s not always easy to distinguish between legitimate comments and spam. Here&#8217;s a scenario: your post gets popular on Delicious. You get a ton of comments from &#8220;SEO [...]]]></description>
			<content:encoded><![CDATA[<p>Blogs are built around comments. It&#8217;s always fun and rewarding to see your blog have a lot of comments on it. Trouble is, comments attract spam and it&#8217;s not always easy to distinguish between legitimate comments and spam.</p>
<p>Here&#8217;s a scenario: your post gets <a href="http://delicious.com/popular">popular on Delicious</a>. You get a ton of comments from &#8220;SEO BLOG TIPS&#8221;  saying &#8220;thanks for great post&#8221;. Comments like that add <em>no value whatsoever</em> to your blog post. Heck, they devalue it. So here&#8217;s the question: do you allow the comment or delete it?</p>
<p>Personally, I consider comments like that spam, but on the other hand, it <em>does</em> get the comment count up. So there it is. A short post, but there&#8217;s a reason for it; it&#8217;s meant to spark debate, so go on. What would you do?</p>
<a name="pd_a_1837605"></a><div class="PDS_Poll" id="PDI_container1837605" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/1837605.js"></script>
			<noscript>
			<a href="http://answers.polldaddy.com/poll/1837605/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://polldaddy.com/features-surveys/">online survey</a></span>
			</noscript>
<p><em>(poll embedded)</em></p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=2207&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/the-great-comment-debate/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>How To: Separate WordPress Comments and Trackbacks</title>
		<link>http://wphacks.com/how-to-separate-wordpress-comments-and-trackbacks/</link>
		<comments>http://wphacks.com/how-to-separate-wordpress-comments-and-trackbacks/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 08:00:32 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Comments]]></category>
		<category><![CDATA[WordPress Trackbacks]]></category>

		<guid isPermaLink="false">http://wphacks.com/how-to-separate-wordpress-comments-and-trackbacks/</guid>
		<description><![CDATA[Note: For WordPress 2.7 and newer WordPress installations, you&#8217;ll instead want to use this tutorial. With all the WordPress themes available to WordPress users, it always surprises me how these incredible theme authors don&#8217;t take a few extra seconds to separate their theme&#8217;s trackbacks from the comments. It doesn&#8217;t look very professional and it can [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Note:</strong> For WordPress 2.7 and newer WordPress installations, you&#8217;ll instead want to use <a href="http://wphacks.com/separating-trackbacks-from-comments-in-wordpress-2-7/">this tutorial</a>. </em></p>
<p>With all the WordPress themes available to WordPress users, it always surprises me how these incredible theme authors don&#8217;t take a few extra seconds to separate their theme&#8217;s trackbacks from the comments. It doesn&#8217;t look very professional and it can make it extremely difficult to follow a conversation in the comments.</p>
<p>Separating your trackbacks and comments requires a minimal amount of coding work to set up. First, you&#8217;ll want to make a backup of your comments.php file just in case something goes wrong. Next, follow these three steps:</p>
<p>1 ) Access your comments.php file and locate the following code:</p>
<p><code>&lt;?php foreach ($comments as $comment) : ?&gt;</code></p>
<p>Immediately <strong>after</strong> the above code, you&#8217;ll want to place this code:</p>
<p><code>&lt;?php $comment_type = get_comment_type(); ?&gt;<br />
&lt;?php if($comment_type == 'comment') { ?&gt;</code></p>
<p>2 ) Next, you&#8217;ll want to scroll down a little bit and locate the following code:</p>
<p><code>&lt;?php endforeach; /* end for each comment */ ?&gt;</code></p>
<p>Immediately <strong>before</strong> the above code, you&#8217;ll want to place this code:</p>
<p><code>&lt;?php } /* End of is_comment statement */ ?&gt;</code></p>
<p>This will filter out all of the trackbacks and pingbacks from your main comments loop. Now we need to create a second comments loop to display the trackbacks and pingbacks.</p>
<p>3 ) Almost immediately below the code from step 2 you should find this code:</p>
<p><code>&lt;?php else : // this is displayed if there are no comments so far ?&gt;</code></p>
<p>Immediately <strong>before</strong> the above code, you&#8217;ll want to place this code:</p>
<p><code>&lt;h3&gt;Trackbacks&lt;/h3&gt;<br />
&lt;ol&gt;<br />
&lt;?php foreach ($comments as $comment) : ?&gt;<br />
&lt;?php $comment_type = get_comment_type(); ?&gt;<br />
&lt;?php if($comment_type != 'comment') { ?&gt;<br />
&lt;li&gt;&lt;?php comment_author_link() ?&gt;&lt;/li&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/ol&gt;</code></p>
<p>You can adjust this code to display how you want to, including using a different header if you have a specific look for your header 3.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=20&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-separate-wordpress-comments-and-trackbacks/feed/</wfw:commentRss>
		<slash:comments>65</slash:comments>
		</item>
	</channel>
</rss>

