How to Display the Facebook Comment Count in WordPress Theme

100

Recently, we showed you how to setup facebook comments for WordPress. One of the downside of using that plugin is that it overtakes all WordPress comment_count functions, and it outputs a facebook branded version of the comment count. This may cause issues to your WordPress design specially if you are using a comment bubble to just display the number. In this article, we will show you how to display the facebook comment count in your WordPress theme.

All you have to do is paste the following code in your theme file where you want to display the comment count:

  <fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments  

Hope you will find this handy while designing your WordPress themes.