Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author RadiusTheme

    (@techlabpro1)

    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

    (@radicalblues)

    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

    (@techlabpro1)

    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

    (@radicalblues)

    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: https://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

    (@radicalblues)

    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

    (@techlabpro1)

    Hello,
    It is 3rd party plugin.

    So please you can try to add the comments code into layout directly.

    Thanks

    Plugin Author RadiusTheme

    (@techlabpro1)

    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.