Get the Official WPSaviour App Now!


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:

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

Download The WPSaviour App Now

Related posts
Best WordPress PluginsBlog

WordPress 5.4 Will Add Lazy-Loading to All Images

Beginner’s GuideBlog

How to Add a Preloader Animation to WordPress (Step by Step)


Install WordPress On Ubuntu Locally With LAMP


Theme Customizer Boilerplate – Conditional Options, Child Themes and Plugins

Sign up for our Newsletter and
stay informed

Leave a Reply

Your email address will not be published.