# 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:** 2

<div class="post-metadata">

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

</div>

> [@jtbayly](#):
>
> Is there anything I can do to debug the issue?

Make sure that the comments on the post are meeting the criteria you have set on the plugin’s Commenting options tab. If it seems that the posts comments should be getting pulled to WordPress, you could debug the issue by enabling the ‘Custom Fields’ screen option for posts on your site:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/3/93656690360e6c9ecf05e67d2c449a15438f63e3.png)

When that has been done, you will see a list of post metadata at the bottom of the edit screen. Make sure that the `discourse_permalink` and `discourse_topic_id` fields match the associated Discourse topic. If these fields are not present, it is possible that the post has been unlinked from Discourse. You can re-link an unlinked post by selecting the ‘Link to Existing Topic’ radio input from the Discourse meta box.

---

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