Facebook Comments
Display number of comments (6 posts)

  1. borderline11
    Posted 2 years ago #

    I would like to show the number of FB comments counts to the comments_popup_link
    I tried the codes below, I put it on the loop but it breaks my theme
    maybe I need to remove or add something? or perhaps put it elsewhere?

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

    also this one

    <a href="<?php the_permalink(); ?>#commentForm"><fb:comments-count href=<?php the_permalink(); ?>></fb:comments-count> Kommentare</a>

    none works :/


  2. borderline11
    Posted 2 years ago #

    ok, I made it work with this code

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

    however, I would like to have the word Comments clickable and link to the post... how can I do this? with the normal WP comments you can do that but with this hack I don't know how.... does anyone know?

  3. dynamitri
    Posted 2 years ago #


    Sorry, I can't really offer much help here, but - if you don't mind me asking - where di you put the code from the post above mine? Seems I'm trying to do the same thing, I want blog posts on my main page to display number of facebook comments - however, it seems to display the WordPress comments only. I've added 2 facebook comments to a test note at http://www.dynamitri.pl now and it doesn't seem to recognise them in the count.

    Any suggestions you could offer?

    Many thanks,


  4. borderline11
    Posted 2 years ago #


    I have the code on single.php and loop.php

  5. dynamitri
    Posted 2 years ago #

    Did you replace any code in particular? Sorry, I'm still quite new to WordPress - maybe you could just PM me the code or paste it here, so that I know exactly where it needs to go.

    Hope that's not too much of a problem! Thanks!

  6. borderline11
    Posted 2 years ago #

    No, you don't have to replace any code, just copy and paste anywhere on those two files.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.