Forum

Thread tagged as: Problem, Error, Blog

Blog: postCommentCount displays incorrect number of comments

While testing during development, I posted, approved then deleted a blog comment on an imported-from-WordPress blog post. However, I’ve just noticed that the postCommentCount for that now live blog post is off by +1.

It would seem like my postCommentCount was permanently increased — maybe because the comment was approved before it was deleted?

What would be the safest way to fix this number? I’m comfortable just changing the number in the db, if that won't have any undesirable repercussions, but would love to know if there were a less hacky way to get the postCommentCount for this particular post corrected.

Abby Larsen

Abby Larsen 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can change it in the database, or it will be updated with the next comment activity on that post.

Abby Larsen

Abby Larsen 0 points
Registered Developer

Yay! Thanks for the tip! :)