# Creating WP native comments

**URL:** <https://meta.discourse.org/t/creating-wp-native-comments/47557>\
**Category:** WordPress\
**Created:** [20 Luglio 2016, 5:05pm UTC](https://meta.discourse.org/t/creating-wp-native-comments/47557 "2016-07-20T17:05:39Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Post date:** [19 Agosto 2016, 2:40pm UTC](https://meta.discourse.org/t/creating-wp-native-comments/47557/11 "2016-08-19T14:40:39Z")

</div>

@simon I suspect you understand how this plugin is working a bit better than me and just wanted to get your opinion on how I would also overwrite the value for `get_comments_number()` and not just `comments_number()`.

My theme uses the former to display the number of comments in the header, along with number of shares and views etc. At the moment this is always 0 due to not being compatible with the `wp-discourse` plugin. I suppose in the short term just overwriting this number when each post is loaded would do, but ideally I’d like Wordpress to be aware of the number of Discourse comments at a lower level.

### Count in header

![](https://global.discourse-cdn.com/meta/original/3X/b/5/b50cdc25f32cb22146c3d0e58c4f301f7944494a.png)

### Count in comments section

 ![](https://global.discourse-cdn.com/meta/original/3X/5/d/5d97ec9c0da9abc3bd556cff89754c427e7ce004.png)

This is so that I can determine popular posts and things like that in Wordpress. At the moment Wordpress knows nothing of the Discourse comments if I’m not mistaken.

Would this require rewriting the plugin entirely?

---

_[View the full topic](https://meta.discourse.org/t/creating-wp-native-comments/47557)._
