Separate the Comments and Trackbacks
1. Open comments.php, and search(Ctrl+F) for the following line:
<?php foreach ($comments as $comment) : ?>
After it, paste the following:
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type == ‘comment’) { ?>
2. Now search for:
<?php endforeach; /* end for each comment */ ?>
Immediately before the above code, paste this code:
<?php } else { $trackback = true; } /* End of is_comment statement */ ?>
That means that your list of comments will continue to display as normal, but without any trackbacks or pingbacks. Now we need to create a second comments loop to display the trackbacks and pingbacks.
3. Look for the following line:
<?php else : // this is displayed if there are no comments so far ?>
And before it, paste this: (The “Trackbacks” title line can be deleted if you don’t want a heading to be shown)
<?php if ($trackback == true) { ?>
<h3>Trackbacks</h3>
<ol>
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type != ‘comment’) { ?>
<li><?php comment_author_link() ?></li>
<?php } ?>
<?php endforeach; ?>
</ol>
<?php } ?>
Then save comments.php page and checkout your blog. You will notice Trackbacks will be displayed separately.