Title: Implementing fb:comments-count
Last modified: September 1, 2016

---

# Implementing fb:comments-count

 *  Resolved [radicalblues](https://wordpress.org/support/users/radicalblues/)
 * (@radicalblues)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/)
 * 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/](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/](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://wordpress.org/plugins/the-post-grid/](https://wordpress.org/plugins/the-post-grid/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [RadiusTheme](https://wordpress.org/support/users/techlabpro1/)
 * (@techlabpro1)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-7622097)
 * 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
 *  Thread Starter [radicalblues](https://wordpress.org/support/users/radicalblues/)
 * (@radicalblues)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-7622098)
 * 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?
 *  Plugin Author [RadiusTheme](https://wordpress.org/support/users/techlabpro1/)
 * (@techlabpro1)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-7622239)
 * 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
    Thanks
 *  Thread Starter [radicalblues](https://wordpress.org/support/users/radicalblues/)
 * (@radicalblues)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-7622251)
 * I 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/](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!
 *  Thread Starter [radicalblues](https://wordpress.org/support/users/radicalblues/)
 * (@radicalblues)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-7622311)
 * Just updating this, still no luck… could you maybe provide a working copy of 
   rtTPGShortCode.php that works with fb:comments-count plugin?
 *  Plugin Author [RadiusTheme](https://wordpress.org/support/users/techlabpro1/)
 * (@techlabpro1)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-7622315)
 * Hello,
    It is 3rd party plugin.
 * So please you can try to add the comments code into layout directly.
 * Thanks
 *  Plugin Author [RadiusTheme](https://wordpress.org/support/users/techlabpro1/)
 * (@techlabpro1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-9064924)
 * Hi,
    I am closing this topic.
 * Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Implementing fb:comments-count’ is closed to new replies.

 * ![](https://ps.w.org/the-post-grid/assets/icon-256x256.gif?rev=2647621)
 * [The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid](https://wordpress.org/plugins/the-post-grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-post-grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-post-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/the-post-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-post-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-post-grid/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [fb comments](https://wordpress.org/support/topic-tag/fb-comments/)

 * 7 replies
 * 2 participants
 * Last reply from: [RadiusTheme](https://wordpress.org/support/users/techlabpro1/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/implementing-fbcomments-count/#post-9064924)
 * Status: resolved