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.

Loading Facebook Comments ...

One Comment

  1. good day sir max! i don’t know where to write my concern sir max or where to contact you, so i just place my question here in the comment area. i would like to know if how are you updated about product launchings? products like mobile phones and other gadgets and new technology, that would be hold locally especially here in cebu. hope to hear from you, thank you i’ve learn many things in your column at sunstar (cell talk) keep it up sir!…

Leave a Reply

Your email address will not be published. Required fields are marked *

No Trackbacks.