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(); ?>


Your choice for site templates and wordpress themes

Comments

20 Responses to “Display the total number of trackbacks on your wordpress”

  1. 30 Most Wanted WordPress Comments Page Hacks | instantShift on February 10th, 2009 11:45 am

    [...] Click Here for More [...]

  2. 30 astuces pour améliorer la présentation des commentaires dans WordPress | Presse-Citron on February 10th, 2009 5:44 pm

    [...] 08. Affichez le nombre total de trackbacks sur votre blog [...]

  3. 30个Wordpress 评论回复功能扩展技巧 - 菠菜博 on February 14th, 2009 12:23 am

    [...] 8.显示引用链接(Trackbacks)的总数 [...]

  4. 30个增强Wordpress留言部份的技巧 - 左岸读书_blog on March 3rd, 2009 9:12 am

    [...] 8.显示引用链接(Trackbacks)的总数 [...]

  5. 16 truques e dicas para estilizar e modificar os comentários do seu blog! | Wordpress Love - Themes, Plugins e tudo para Wordpress, em Português on March 19th, 2009 12:35 am

    [...] 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! [...]

  6. 30个你最想要的Wordpress回复页技巧 - 站长日志 on March 24th, 2009 10:09 pm

    [...] 8.显示引用链接(Trackbacks)的总数 [...]

  7. WordPress资料站 » Blog Archive » 更为友好的Wordpress回复页技巧 on April 5th, 2009 5:11 pm

    [...] 8.显示引用链接(Trackbacks)的总数 [...]

  8. 30个你最想要的Wordpress回复页技巧 - 落落寡欢 on April 5th, 2009 7:22 pm

    [...] 8.显示引用链接(Trackbacks)的总数 [...]

  9. 30种Wordpress评论回复功能扩展 : 纽约客 on May 2nd, 2009 5:04 pm

    [...] 8.显示引用链接(Trackbacks)的总数 [...]

  10. 40+ Awesome Tutorials and Techniques For WordPress Theme Developers | tripwire magazine on August 10th, 2009 1:54 pm

    [...] 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 [...]

  11. 40+ Awesome Tutorials and Techniques For WordPress Theme Developers | huibit05.com on August 20th, 2009 4:03 pm

    [...] 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 [...]

  12. US Want - Your Blogs, Social Network, Search Engine for Drivers, UserGuide, Vids, Images, Tutorials on September 6th, 2009 7:35 pm

    [...] Click Here for More [...]

  13. 33 Most Useful Worpdress Comments Page Hacks - Themeflash : One Stop For All Your Web Resources on September 15th, 2009 12:35 am

    [...] 22. Display the Total Number of Comments Trackbacks [...]

  14. The Ultimate Wordpress Developer Toolbox | tripwire magazine on October 17th, 2009 2:31 am

    [...] 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 [...]

  15. Think2free.com » 20 best tutorials and techniques to develop wordpress theme on December 8th, 2009 12:29 pm

    [...] Displaying Total Number Of Comments On Your Blog (or trackbacks) [...]

  16. 30 Wordpress Yorum Sayfası Düzenlemesi | Sorbize on June 2nd, 2010 5:09 am

    [...] 8. Blogunuzdaki Toplam Geri Bildirim Sayısını Gösterin [...]

  17. 20 Very Useful Comment Page Hacks for WordPess Users | blueblots.com on August 23rd, 2010 10:04 pm

    [...] [...]

  18. 40+ Awesome Tutorials and Techniques For WordPress Theme Developers — tripwire magazine on October 15th, 2010 1:47 am

    [...] 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 [...]

  19. 100+ Massive Wordpress Tutorial Collection - tripwire magazine on November 19th, 2010 3:16 am

    [...] 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 [...]

  20. 30 Most Wanted WordPress Comments Page Hacks – iTViet.Vn on September 11th, 2011 8:01 pm

    [...] Click Here for More [...]

Got something to say?

You must be logged in to post a comment.