# How to debug a post on WP having the incorrect comment number

**URL:** <https://meta.discourse.org/t/how-to-debug-a-post-on-wp-having-the-incorrect-comment-number/134453>\
**Category:** WordPress\
**Created:** [November 26, 2019, 4:35pm UTC](https://meta.discourse.org/t/how-to-debug-a-post-on-wp-having-the-incorrect-comment-number/134453 "2019-11-26T16:35:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)\
**Post date:** [November 26, 2019, 4:59pm UTC](https://meta.discourse.org/t/how-to-debug-a-post-on-wp-having-the-incorrect-comment-number/134453/3 "2019-11-26T16:59:35Z")

</div>

Thanks,

It gets weirder. I just watched as a comment came in on a brand new post. The home page of our WP site immediately showed one comment on that post. So far, looking good. Then, clicking through to the post, the info at the top showed there being one comment.

I clicked the number of comments to scroll down to the appropriate spot on the page, but instead of saying “Join the discussion” it said “Start the discussion.” (We don’t actually display the comments, just a count of them and the link to our Discourse instance.) I figured a page refresh would fix it, but instead, when I refreshed the page, it was back to saying there were zero comments. And the home page now updated back to zero as well.

I looked at the discourse\_topic\_id and discourse\_permalink and they are both correct. The other discourse fields don’t make much sense to me, though.

discourse\_comments\_count says ‘0’

This is what’s in discourse\_comments\_raw:

```plaintext
{"id":1399,"posts_count":2,"filtered_posts_count":0,"posts":[],"participants":[{"id":11,"username":"nathan","name":"Nathan ","avatar_template":"https://www.ourdiscourse.com/user_avatar/www.ourdiscourse.com/nathan/{size}/182_2.png"},{"id":103,"username":"Zak","name":"Zak","avatar_template":"https://www.ourdiscourse.com/user_avatar/www.ourdiscourse.com/zak/{size}/652_2.png"}]}

```

Also, I can’t figure out what discourse\_post\_id is supposed to be, but just looking at the 4 digit number it contains, I would have expected it to be the WP post id, but it isn’t. What is it supposed to be?

---

_[View the full topic](https://meta.discourse.org/t/how-to-debug-a-post-on-wp-having-the-incorrect-comment-number/134453)._
