Segregating trackbacks from comments in WordPress

In most WordPress themes, trackbacks aren’t segregated from regular blog comments. This is fine but if you get a lot of trackbacks in a post, it gets in the way of the arrangement of comments.

For a long time, I just used WordPress’ stock comments template but at the back of my mind, I had listed the segregation of trackbacks and comments as something that I would be implementing in this blog and the theme that I’m finalizing. Last week, however, my post on using Dreamweaver to modify a WordPress theme got a lot of trackbacks and I saw the need to separate these notifications from regular comments on the post.

I didn’t have to search for a solution because I had already bookmarked this post by web designer Rachel Cunliffe. Just copy the code she posted in her blog post and paste it into your WordPress comment loop in comments.php. Replace the code in comments.php starting at <?php if ($comments) : ?> until <?php endforeach; /* end for each comment */ ?>, don’t replace the entire code in your comments.php or else you’d encounter errors.