# Creating WP native comments

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

<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:** [20. Juli 2016 um 18:31 UTC](https://meta.discourse.org/t/creating-wp-native-comments/47557/7 "2016-07-20T18:31:13Z")

</div>

> [@jamesmarkcook](#):
>
> other parts of Wordpress display the count

In theory, your theme should have access to the comments number now. The plugin filters the value returned by the wordpress `comments_number` function. This is how it looks with the twentysixteen theme:

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

But the plugin is not filtering the value returned by the `get_comments_number` function. This is the function that returns the comment number as an integer (instead of a string like ‘2 Replies’). If you are not seeing a comments number where you expect one, this is probably why. It’s a little tricky, because that number is used to keep track of the number of WordPress comments as opposed to the comments generated on Discourse, but it should definitely get fixed. I’ll look at it asap.

> [@jamesmarkcook](#):
>
> Is anyone aware of a reason why the approach to create native Wordpress comments from Discourse data wasn’t pursued?

I don’t know, but the plugin’s comment html can be overwritten in your theme. It wouldn’t be very difficult to match a theme’s comment styles. I’ll look into that soon.

---

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