diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Improving Trackback display

This tutorial will explain how to change or hide the display of Trackbacks/Pingbacks in WordPress. This is a follown post of  “Nicer trackbacks plugin” and post on “Improving comment section readability”.

  1. Open your Comments Template and look for the code below (it may look different, depending on your theme).
  2. < ?php comment_author_link() ?>Says: < ?php if ($comment->comment_approved == '0') : ?> Your comment is awaiting moderation. < ?php endif; ?>
    < ?php comment_text() ?>
  3. Adjust the code to switch based on whether it’s a real comment.
    < ?php if (get_comment_type() ="=" "comment"){ ?>
    display code
    < ?php } ?>

    This will now only show comments on your site. People can still trackback/ping your site (if your permissions allow this) and you’ll receive notification, but they won’t clutter up the comments section.

  4. If you want to show Trackbacks/Pingbacks on your site, mixed in with the comments, but in a different style, after the code in Step 2, add:
    < ?php else { ?>
    display code
    < ?php } ?>

    Remember that “display code” is replaced with the code in Step 1. Now, change this second lot of the display code to change the way Trackbacks/Pingbacks appear on your site. I have removed the body of the comment and just shows the link to their post:

  5. Trackback: < ?php comment_author_link() ?>

[Source: cre8d-design]

Share This Story, Choose Your Platform!