Forums
Home / Fixing WordPress / How to change wordpress comment count with facebook comment count.
(@youni89)
8 years, 8 months ago
Hi, I’d like to replace my theme’s wordpress comment count on my homepage post boxes with facebook comment counts.
imperialherald.com is the website.
I think this is the code for the commend counts in functions.php
function gridz_comments_link($comments_label = true) { if(comments_open() && !post_password_required()) { if($comments_label) comments_popup_link(__(‘0 Comments’, ‘gridz’), __(‘1 comment’, ‘gridz’), __(‘% comments’, ‘gridz’), ‘entry-comments’); else comments_popup_link(__(‘0’, ‘gridz’), __(‘1’, ‘gridz’), __(‘%’, ‘gridz’), ‘entry-comments’); } }
thank you
(@youni89)
8 years, 8 months ago
Hi, I’d like to replace my theme’s wordpress comment count on my homepage post boxes with facebook comment counts.
imperialherald.com is the website.
I think this is the code for the commend counts in functions.php
function gridz_comments_link($comments_label = true) {
if(comments_open() && !post_password_required()) {
if($comments_label)
comments_popup_link(__(‘0 Comments’, ‘gridz’), __(‘1 comment’, ‘gridz’), __(‘% comments’, ‘gridz’), ‘entry-comments’);
else
comments_popup_link(__(‘0’, ‘gridz’), __(‘1’, ‘gridz’), __(‘%’, ‘gridz’), ‘entry-comments’);
}
}
thank you