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”. Open your Comments Template and look for the code below (it may look different, depending on your theme). </li><li class="<?php echo $oddcomment; ?>" id="comment- < ?php comment_ID() […]

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).
    </li><li class="<?php echo $oddcomment; ?>" id="comment- < ?php comment_ID() ?>"><cite>< ?php comment_author_link() ?>Says: < ?php if ($comment->comment_approved == '0') : ?&gt; Your comment is awaiting moderation. < ?php endif; ?><br /><small class="commentmetadata">< ?php edit_comment_link('e','',''); ?></small>< ?php comment_text() ?></cite></li>
  2. 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.
  3. 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:

    </li><li class="trackback" id="comment-lt;?php comment_ID() >">Trackback: < ?php comment_author_link() ?></li>

[Source: cre8d-design]