Hi,
Here is the code to display total number of trackback links on the blog:
function tb_count() {
global $wpdb;
$count = “SELECT COUNT(*) FROM $wpdb->comments WHERE comment_type = ‘pingback’”;
echo $wpdb->get_var($count);
}
Now, we can call this function from any where in the blog:
<?php tb_count(); ?>
Thanks,
Shane G.
Popularity: 1%