Separating Trackbacks & Pingbacks in Wordpress 1.5 & Above
The code presented in this article is integrated in my freely downloadable theme, “Fauna“. In this theme the whole comment aspect has been cleaned up, codewise.
This code presented below works fine for Wordpress 1.5 and above, and is derived from the “Classic” theme.
Since upgrading from Wordpress 1.2, due to the way the new version handles trackbacks and pingbacks, I could no longer separate these from comments, as I used to do.
Here’s a way to do it that works in the new system.
The Code
To show separate trackbacks and pingbacks on a page in Wordpress 1.5 or above, you can replace the code in the default [themename]/comments.php with the following:
- comments.php modified to separate trackbacks & pingbacks
Please check out the trackbacks below to find ported / different versions.
- The Curse of Comic Sans
- Separating Trackbacks & Pingbacks in Wordpress 1.5 & Above
- .htaccess Wizard
- Worlds Largest Digital Photo
Well, as you mention I haven't tried the plugin. However, I think i know how you can do what you want to do.
The place where you want to write "Trackbacks (x) Comments (x)", I would guess that you're using the builtin
comments_popup_linkright?Well, don't. Instead do this:
Etc. Get it?
Yep, and it works perfectly! Thanks again!
Hello, thanks for the code. Is this the code you are still using wiht your current theme? i really like what you have going here.
Nat,
The code has been optimized, cleaned up and merged with my Fauna theme. You can grab it there.
http://www.noscope.com/fauna/
Thanks for the insight into how to separate the comments from the trackbacks. Very useful. Thanks again.
Brian (who posted here asking for email removed), while cleaning up spam i accidentally deleted yours too. Sorry about that, and sorry for all the spam you received. Somehow my countermeasures failed me.
Is this the same plugin you have mentioned above http://defmay.com/wordpress/plugins/smart-count ?
Edited to remove as the bug has been fixed. Thanks.