Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this:

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

    Anonymous User 13732656

    (@anonymized-13732656)

    Hey there @alex Moss,

    I added that code in replacement of my themes code:
    <?php comments_popup_link( __( ‘0 Comments’, ‘listify’ ), __( ‘1 Comment’, ‘listify’ ), __( ‘% Comments’, ‘listify’ ) ); ?>

    But it doesn’t show ‘Comment/comments’ after the number of facebook comments and I would like it to.

    Cheers

    I have the similar problem. I need to count comments in index.php in the loop <?php while (have_posts()) : the_post(); ?>.
    I’ve tried to replace <?php comments_popup_link('No comments', '1 Comment ', '% Comments '); ?> by the code counting Facebook comments. I tried the following:

    • <fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments
    • <fb:comments-count href="<?php echo get_permalink(get_the_ID()); ?>"></fb:comments-count> Comments
    • <fb:comments-count href="<?php the_permalink(); ?>"></fb:comments-count> Comments
    • <fb:comments-count href="URL"></fb:comments-count> Comments, where URL is the constant post URL (I copied it from the browser adress field)

    But it seems all of them don’t work. Count of comments always is 0.
    I use Facebook Comment plugin version 2.3.3.
    Is there any ways to solve the problem?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comment count in meta?’ is closed to new replies.