Display the total number of trackbacks on your wordpress
December 15, 2008 · Print This Article
With a little modification, You can display the total number of trackbacks.
we first have to create a function. paste the following code on the functions.php file from your theme:
function trackback_count() {
global $wpdb;
$count = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_type = 'pingback' OR comment_type = 'trackback'";
echo $wpdb->get_var($count);
}
Once the file is saved, you can call the function anywhere you want:
<?php trackback_count(); ?>
[…] Click Here for More […]
[…] 08. Affichez le nombre total de trackbacks sur votre blog […]
[…] 8.显示引用链接(Trackbacks)的总数 […]
[…] 8.显示引用链接(Trackbacks)的总数 […]
[…] 7. MOSTRAR O NÚMERO DE TRACKBACKS NO SEU BLOG O mesmo se aplica ao número de trackbacks que recebe no seu blog. Quantos mais, mais popular o seu blog se torna, o que invariavelmente ajuda a receber ainda mais trackbacks! […]
[…] 8.显示引用链接(Trackbacks)的总数 […]
[…] 8.显示引用链接(Trackbacks)的总数 […]
[…] 8.显示引用链接(Trackbacks)的总数 […]
[…] 8.显示引用链接(Trackbacks)的总数 […]
[…] Total Number Of Comments On Your Blog (or trackbacks) If you have a popular WordPress blog with good number of comments everyday, then wouldn’t it be […]
[…] Total Number Of Comments On Your Blog (or trackbacks) If you have a popular WordPress blog with good number of comments everyday, then wouldn’t it be […]
[…] Click Here for More […]
[…] 22. Display the Total Number of Comments Trackbacks […]
[…] Total Number Of Comments On Your Blog (or trackbacks) If you have a popular WordPress blog with good number of comments everyday, then wouldn’t it be […]
[…] Displaying Total Number Of Comments On Your Blog (or trackbacks) […]
[…] 8. Blogunuzdaki Toplam Geri Bildirim Sayısını Gösterin […]
[…] […]
[…] Total Number Of Comments On Your Blog (or trackbacks) If you have a popular WordPress blog with good number of comments everyday, then wouldn’t it be […]
[…] Total Number Of Comments On Your Blog (or trackbacks) If you have a popular WordPress blog with good number of comments everyday, then wouldn’t it be […]
[…] Click Here for More […]