Display Clean Pingbacks and Trackbacks


Sponsored Links






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.

Pingbacks - Kim Smith on Maxim

Clean Pingbacks / Trackback - Kim Smith on Maxim

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.

Clean Pingbacks / Trackback Screen shot

Clean Pingbacks / Trackback Screen shot

If you need more WordPress Expert book, get DigWP

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

Display Twitter-like “time ago” on your WordPress

There are some ways to display twitter-like “time ago” date format in our WordPress. We can use plugin (we recommended this plugin) or we can create and write little functions to handle this. On this tricks I will show you … Read More

WP Tutorial: Remove admin name in comments class

Batovasan, create nicely WordPress Tutorial. The reason create this tutorial is Small Security Hole on WordPress. Like we all know by default, when the blog admin left a comment on his blog, WordPress use the name in the comment css … Read More

Display Separate Counts for Comments, Pingbacks and Trackbacks

Step 1 – Display separate comments, pingbacks, and trackbacks. The first thing we need to do is from the markup, keeping things nice and clean. Step 2 – Display read more

Source: http://digwp.com/2010/02/separate-comments-pingbacks-trackbacks/

Introduction to Blogging « WordPress Codex

and when the blogs are updated, they display the These are known as trackbacks and pingbacks. We'll also discuss how to Use a clean and simple theme if at all possible. read more

Source: http://codex.wordpress.org/Introduction_to_Blogging

To keep Antigua clean we need to do a ‘Singapore’? | Antigua

The problem of keeping our country clean has been Yew of Singapore – who has encouraged the display Trackbacks/Pingbacks read more

Source: http://www.antiguaobserver.com/?p=24665

Pingbacks — Support — WordPress.com

Comment Display Options; Comment Notification Email Trackbacks; Unwanted Comments and Comment Spam; Who Can when you link to another blog post where pingbacks read more

Source: http://en.support.wordpress.com/pingbacks/

What Are Pingbacks And Trackbacks And How Do I Use Them? | Web

The terms pingbacks and trackbacks are used almost interchangeably I really like your site\'s design - very clean WordPress Widget To Display A Twitter Hashtag; Easy read more

Source: http://webtrainingwheels.com/2009/09/what-are-pingbacks-and-trackbacks-and-how-do-i-use-them/


2 Responses to Display Clean Pingbacks and Trackbacks

  1. Pingback: Tweets that mention How To Display Clean Pingbacks and Trackbacks # WordPress Tricks & Tips -- Topsy.com

  2. Iurie says:

    Hi,
    I must insert the last code () in comments.php file?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>