Support » Plugin: Simple Facebook Connect » [Plugin: Simple Facebook Connect] comment count not showing up for FB comments

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    This is intentional. The comment count is only updated to reflect the FB comments on the pages where the comments are actually loaded and shown.

    This is for speed reasons. Having to load the FB comments on pages where the post and comment count is shown, but the comments themselves are not shown, turned out to be really friggin’ slow.

    Furthermore, the comment count will only get updated if you’re using the get_comments_number() or comments_number() function calls. If your theme directly references the $post->comment_count variable, then the plugin can’t update that.

    Still could you tell us how this theoretically could be done? It sorta looks silly if the post says 0 comments while the viewer also sees 10 comments below the post.

    I’d like to try and find a workaround.

    Hope you can help 🙂

    Cheers
    Vincent

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If your theme is using the “comments_number()” function to show the number of comments, then you’ll get the correct count back.

    Look at your theme’s code, where it displays the number of comments. See how it’s doing it.

    Tech Ninja Otto- I bow down to you but still have a question regarding this. I use the Atahualpa theme and can’t seem to find any instance of the “comments_number()” function (site: http://1790.us). I also delve into their forums for answers but couldn’t find any.

    Is there a way to show comment count for FB based comments without the “comments_number()” function?

    Thanks in advance!

    ~Ryan

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Is there a way to show comment count for FB based comments without the “comments_number()” function?

    No. If your theme isn’t using the comments_number() function, then you need to edit the theme to use that function.

    Furthermore, Atahualpa is using the comments_number function and will show the correct number. Look in the comments.php file:

    http://themes.svn.wordpress.org/atahualpa/3.7.1/comments.php

    <h3 id="comments"><?php // Comment Area Title
    	comments_number(__('No comments yet to ', 'atahualpa'),
        __('1 comment to ', 'atahualpa'), __('% comments to ', 'atahualpa'));
    	echo get_the_title(); ?></h3>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Simple Facebook Connect] comment count not showing up for FB comments’ is closed to new replies.