PDA

View Full Version : WP comment count issue


sarahG
01-02-2009, 03:48 PM
Since moving to 2.7 I've found a bit of a problem with the comment_number() template tag. It seems that it states how many comments and trackbacks a post has, regardless of whether they're moderated or not. Obviously that's a bit confusing for some when it says 1 or more comments, but they're all being moderated.

Obviously I don't want to drop my the comment count off my site but at the same time I can't open up unmoderated commenting, not with the wierd human spam that comes through!

Anyone else noticed this?

Kevin
01-02-2009, 04:30 PM
I don't have any comments held for moderation at the moment but I'll check this when I do. Do you mean that if you have a post with 1 approved comment and 1 comment which is held for moderation the comment_number() tag shows 2 comments to visitors (even though there is only one).

sarahG
01-02-2009, 06:01 PM
Exactly that. It just counts all comments, regardless of status.

Just to add, comment_popup_link() which I have on my index.php file, also reports the extra comments.

At this point I'll also mention that something is broken in my admin on the Comments page as the little bubble next to each comment, usually stating how many comments are on that post, all have the same figure of around 2400. So maybe I broke something somewhere?