Adding Trackback and Comment Counts
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.
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.
This post was written by . You can visit the Author Archive for a short bio, more posts, and other information about the author.
Is there a plugin that gives the actual linkto the trackbacks vs. the comments like you have on this site?
I think I’m reading your question wrong. You’re looking to hyperlink the trackback URI?
Yes. In the default WP install, it just lists “Comments (#)”, and that includes trackbacks. I’d like to get them to show seperately.
OK, then this is the hack you’ll need.
Hrm. 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…
Yes. The trackback code is (<?php mw_trackbacks('count') ?>)
hi 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!
You’re using mw_comments(‘count’) for your trackback count. Should be mw_trackbacks(‘count’). I don’t think there is one for pings.
Oh my bad. I see what you’re saying. To make hyperlink do this:
<a href=”<?php trackback_url() ?>”>Trackbacks (<?php mw_trackbacks(‘count’) ?>)</a>
yaaay!!! thanks for the tip!!!
Glad you got it.
hello 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?