Have you ever know, WordPress Comment separated between Pingbacks/Trackbacks and Standard comment. With extra function we can separate this type of comment easily. Example we will display more clean and readable Pingbacks and Trackbacks.
We’ll need to create functions and call this functions in our wp_list_comments functions. Let’s get started. Open your functions.php and write down this functions
// create clean pingbacks and trackbacks
function GetCleanPings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; echo '<li>'.comment_author_link().'</li>';
}
After you finish this code, the next step is added callback in our wp_list_comments functions using this method
<?php wp_list_comments('type=pings&callback=GetCleanPings'); ?>
And done, you can check on our example in this screen shot.
If you need more WordPress Expert book, get DigWP





Pingback: Tweets that mention How To Display Clean Pingbacks and Trackbacks # WordPress Tricks & Tips -- Topsy.com
Hi,
I must insert the last code (
) in comments.php file?