Wordpress

How to Display the Facebook Comment Count in WordPress Theme

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:

1 <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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s