Performancing Metrics

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.

Categories: WordPress Plugins

This post was written by . You can visit the for a short bio, more posts, and other information about the author.

Get backlinks to your Blog!

Promote Your Blog

If you are looking to promote your blog and get high quality backlinks from a PR6 2003 domain then Blogsearchengine.com is for you. For as little as $14.99 you can submit your blog and have a review written and published there with a backlink to your website or blog, we accept all niche!


Comments Closed

Comments

  1. Gudlyf says: 5/29/2004

    Is there a plugin that gives the actual linkto the trackbacks vs. the comments like you have on this site?

  2. John says: 5/29/2004

    I think I’m reading your question wrong. You’re looking to hyperlink the trackback URI?

  3. Gudlyf says: 5/29/2004

    Yes. In the default WP install, it just lists “Comments (#)”, and that includes trackbacks. I’d like to get them to show seperately.

  4. John says: 5/29/2004

    OK, then this is the hack you’ll need.

  5. Gudlyf says: 5/29/2004

    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…

  6. John says: 5/29/2004

    Yes. The trackback code is (<?php mw_trackbacks('count') ?>)

  7. sabine says: 6/4/2004

    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!

  8. John says: 6/4/2004

    You’re using mw_comments(‘count’) for your trackback count. Should be mw_trackbacks(‘count’). I don’t think there is one for pings.

  9. John says: 6/4/2004

    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>

  10. sabine says: 6/4/2004

    yaaay!!! thanks for the tip!!! :)

  11. John says: 6/4/2004

    Glad you got it.

  12. sabine says: 6/5/2004

    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?