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

    (@mcguive7)

    Hmmm, it looks like there’s no filter on comments_number. Is this intentional?

    Is the comment box appearing below it? This is usually an issue with Facebook’s SDK loading on-page

    Thread Starter Mickey Kay

    (@mcguive7)

    So I think maybe we’re talking about two different things. If I check the box to show comment count, or set the count=”on” in the shortcode, yes, the count does show. But what I am referring to is a separate instance of the comment count, which is output via a Genesis shortcode [post_comments], which is Genesis’ way of outputting their comments link/counts.

    The shortcode does a number of things, but the bottom line is that to get the comment count it calls:

    comments_number()

    which calls:

    get_comments_number()

    which return the following:

    return apply_filters( 'get_comments_number', $count, $post_id );

    So the short of it is, to ensure that the correct comment count appears for all instances where it is being output, you’ll need to filter the comment number (via get_comments_number seems like the right place to me). Does that make sense?

    I cannot comment on Genesis but the comment count you refer to will most probably be the number of WordPress comments and not Facebook comments. You will want to replace the shortcode with this code:

    <fb:comments-count href=https://example.com/></fb:comments-count>

    Please help me ,display numeber of facebook comment in my homepage : https://9status.com/
    When i use code : <?php echo do_shortcode(‘[<fb:comments-count href=https://9status.com/></fb:comments-count>]’); ?> for my homepage, it’s only show 0 ,but my post have 2 comments.
    In single post is display well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comment count link not appearing in post header with (Genesis)’ is closed to new replies.