I found this handy WP 1.2 plugin, MW Comments/Trackbacks, which provides the ability to add the number of trackbacks and comments to your individual links. You can see it in action on this site.
Do you like this article? Submit it to Blogosphere News!
12 Responses
Gudlyf
May 29th, 2004 at 11:09 am
1Is there a plugin that gives the actual linkto the trackbacks vs. the comments like you have on this site?
John
May 29th, 2004 at 11:27 am
2I think I’m reading your question wrong. You’re looking to hyperlink the trackback URI?
Gudlyf
May 29th, 2004 at 1:32 pm
3Yes. In the default WP install, it just lists “Comments (#)”, and that includes trackbacks. I’d like to get them to show seperately.
John
May 29th, 2004 at 1:42 pm
4OK, then this is the hack you’ll need.
Gudlyf
May 29th, 2004 at 3:03 pm
5Hrm. So I gather you put the entry next to the Comments line in index.php right? Nothing shows when I have 2 comments and one TB. Hrm…
John
May 29th, 2004 at 6:59 pm
6Yes. The trackback code is (<?php mw_trackbacks('count') ?>)
sabine
June 4th, 2004 at 9:12 pm
7hi john! i’m trying to get this plugin to work on my test blog and all i get are non-hyperlinked text that shows the number of trackbacks and pings there are. i was wondering exactly what code you put in your index.php to make it show exactly as it does in your site here, both clickable hyperlinks and side by side. this is what i have in my index.php:
< ?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
Trackback (< ?php mw_comments('count') ?>)
Pings (< ?php mw_trackbacks('count') ?>)
doesn’t it look so crude? i even had to manually type the ‘trackback’ and ‘pings’ text.
help! thanks!
John
June 4th, 2004 at 9:26 pm
8You’re using mw_comments(’count’) for your trackback count. Should be mw_trackbacks(’count’). I don’t think there is one for pings.
John
June 4th, 2004 at 9:29 pm
9Oh my bad. I see what you’re saying. To make hyperlink do this:
<a href=”<?php trackback_url() ?>”>Trackbacks (<?php mw_trackbacks(’count’) ?>)</a>
sabine
June 4th, 2004 at 9:34 pm
10yaaay!!! thanks for the tip!!!
John
June 4th, 2004 at 9:40 pm
11Glad you got it.
sabine
June 5th, 2004 at 12:01 am
12hello again john! just curious if this happened to you as well. i did what you showed me above and it created a hyperlink all right but when i tested the trackbacks between two blogs it would just show the ‘count’ change in the FIRST post even if the actual trackback was from another post. you can see it here:
http://test.bluechronicles.net
has this happened to anyone?