Implementing fb:comments-count
-
Hello,
I have to check it how can get facebook comments count. Need some time to study this features how can implement this.
I will update you later.
Thanks
Thanks a lot for your quick response :)!
So far I’ve tried to edit the line
$cc = wp_count_comments($pID);in rtTPGShortCode.php, but I only get errors, maybe it’s not the proper place?
Thanks for using our plugin.
Can you please replaced this {$cc->total_comments} form 284 and 286 by your custom comment number from any function or any where in rtTPGShortCode.php.
Example :
before: ========= $arg['comment'] = "{$cc->total_comments}"; after: ======== $arg['comment'] = "6"; OR $cc = customFunctionToGetCommentCount($id); $arg['comment'] = "{$cc}";Hope this will fix your problem
ThanksI tried tinkering with it more than 1 hour, but can’t get it to work, always get a blank screen error or messy php…
Supposedly, the code for this plugin is “fb:comments-count”, for it to work on individual pages, I had to add this on meta-top.php of my wordpress theme:
<a href="<?php echo get_permalink(); ?>" <li><fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comentarios</li> </a>Looks like this: http://patacoinstv.com/2016/03/24/quien-podria-salvarnos-batman-contra-superman/
But I’m not sure how to place “fb:comments-count” in the plugin rtTPGShortCode.php, I’ve tried replacing it in multiple ways but nothing works, sorry to ask, but could you maybe try the Facebook plugin and see what code works for you?
Thanks!
Just updating this, still no luck… could you maybe provide a working copy of rtTPGShortCode.php that works with fb:comments-count plugin?
Hello,
It is 3rd party plugin.So please you can try to add the comments code into layout directly.
Thanks
Hi,
I am closing this topic.Thanks
The topic ‘Implementing fb:comments-count’ is closed to new replies.
(@radicalblues)
9 years, 9 months ago
Hi! I’m trying to implement the Facebook comments count to display on the plugin, instead of the regular comment counts, which my site doesn’t use at all!
If you check an article on my site, you can notice it has 6 comments, using the function to call facebook comments from the popular plugin:
http://patacoinstv.com/2016/03/24/quien-podria-salvarnos-batman-contra-superman/
But if you go to the main site, search the same article entry and you’ll notice it has 0 comments:
http://patacoinstv.com/
How do I make this change properly? I’ve tried editing rtTPGShortCode.php, but nothing I’ve tried works.
Thanks so much for your support, I’m sure this would help a lot of people who use facebook comments!
https://ww.wp.xz.cn/plugins/the-post-grid/