Seperating Trackbacks and Comments in WordPress

Many weblogs will have the comments mixed right in with the trackbacks. And most of us want to seperate them, and also want to enhance there look. Here is a nice article from Binary moon: This one was also fairly simple to implement. I spent a bit of time Googling for ways to do this […]

Many weblogs will have the comments mixed right in with the trackbacks. And most of us want to seperate them, and also want to enhance there look. Here is a nice article from Binary moon:

This one was also fairly simple to implement. I spent a bit of time Googling for ways to do this and ended up finding a couple of different techniques but the code on all of them was really untidy (sorry). I’m a big fan of beauty in code, not because I’m a geek (although I am) but because I find it makes the code easier to understand and maintain.

I ended up using the following the system on xmouse as a template for my code.

What you need to do is add the following code to functions.php (this is only available in wordpress 2.0 and greater - if you’re not using it I recommend you upgrade)

Trackbacks, Comments, PHP, Code