• Resolved michaelhyatt

    (@michaelhyatt)


    When I attempt to use the comments_number function like this:

    <?php comments_number('0', '1', '%'); ?>

    it returns “Comments (#)” where the # symbol is the actual number of comments. I don’t want the word “Comments” or the parenthesis. I get the same result if I use comments_popup_link, except that it is, of course, linked.

    What am I doing wrong? Or is this something that might be buried in my theme?

    For your reference, the larger context of the problem I am trying to solve is here: https://tr.im/t5B6

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • This function
    id_get_comment_number( )
    in the Intense debate plugin…

    Runs comments_number() through a filter…

    Disable the plugin, remove the filter, or re-write that part of the plugin..

    Thread Starter michaelhyatt

    (@michaelhyatt)

    I deactivated the IntenseDebate plugin and it worked. However, it appears that comments_number gets the correct number of comments. It is the IntenseDebate comment count that is off. It appears that it isn’t syncing correctly.

    I’ll keep working on it. I have also posted a question in the ID forum.

    Thanks.

    Give the author a shout, i’m sure he’ll already be aware or want to be aware of any conflicts…

    Seems the code (from what i’ve looked at) “should” work for 2.8…

    You could always try commenting out the comment number filter in the plugin… it might help, it might not… ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with comments_number function’ is closed to new replies.