• Hi,
    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 :/

    http://wordpress.org/extend/plugins/facebook-comments-plugin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter borderline11

    (@borderline11)

    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
     </span>

    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?

    dynamitri

    (@dynamitri)

    Yo,

    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,

    D.

    Thread Starter borderline11

    (@borderline11)

    dynamitri,

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

    dynamitri

    (@dynamitri)

    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!

    Thread Starter borderline11

    (@borderline11)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display number of comments’ is closed to new replies.