# WP Discourse Comments Block

**URL:** https://meta.discourse.org/t/wp-discourse-comments-block/249790
**Category:** Administrators
**Tags:** wordpress, video
**Created:** [December 24, 2022, 7:43am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790 "2022-12-24T07:43:20Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [December 24, 2022, 7:43am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/1 "2022-12-24T07:43:20Z")

</div>

From version `2.4.7`, the [WP Discourse](https://github.com/discourse/wp-discourse) Plugin includes a Discourse Comments block for the Block Editor. The Discourse Comments block is primary way to add Discourse Comments to a block-enabled theme such as Twenty Twenty Three. Here’s a short video on how to use the Discourse Comments block

https://www.loom.com/embed/6b1cfaabecf948ef933e991916e91bb5

## Next Step

If you haven’t yet, make sure you check out:

- [Using Discourse for Wordpress Comments](https://meta.discourse.org/t/wp-discourse-and-commenting/223493)

## Notes

- The Discourse Comments block does not currently support the “Load Comments With Ajax” setting.
- To learn more about Block Themes in Wordpress [you can read more about them here](https://developer.wordpress.org/themes/block-themes/).

---

<div class="post-metadata">

### Author: ![shuaiZend](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shuaizend/32/215714_2.png) [@shuaiZend](https://meta.discourse.org/u/shuaiZend)
#### Post date: [February 8, 2025, 8:55am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/2 "2025-02-08T08:55:12Z")

</div>

what time support “Load Comments With Ajax” setting？  
my wordpress use full page cache， so need ajax loading comments.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 8, 2025, 11:38am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/3 "2025-02-08T11:38:43Z")

</div>

I think you should exclude comments from caching. That is common procedure. Caching is only for static content by its nature, and commenting isn’t part of that.

---

<div class="post-metadata">

### Author: ![shuaiZend](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shuaizend/32/215714_2.png) [@shuaiZend](https://meta.discourse.org/u/shuaiZend)
#### Post date: [February 10, 2025, 2:12am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/4 "2025-02-10T02:12:31Z")

</div>

My WordPress site has a very high traffic volume, with around 5-8 million visits per day, and approximately 200 million visits per month. These statistics come from Cloudflare.

As a result, I’ve implemented full page caching, which can be considered static pages. Therefore, I want the comments to be dynamically loaded via AJAX. In addition to displaying the comments in real-time, I also want to ensure that comments do not cause any performance degradation in WordPress.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 10, 2025, 6:29am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/5 "2025-02-10T06:29:04Z")

</div>

Your wordpress is getting huge amount of bots. You need something on its end. Known, and very little spoken issie, because admins like big numbers.

---

<div class="post-metadata">

### Author: ![shuaiZend](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shuaizend/32/215714_2.png) [@shuaiZend](https://meta.discourse.org/u/shuaiZend)
#### Post date: [February 10, 2025, 6:42am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/6 "2025-02-10T06:42:53Z")

</div>

Yes, there are a large number of robots. Since my WordPress is a news and information website, it naturally attracts a lot of traffic.

 ![The image displays a dashboard showing analytics with 1.7 million active users, 4.3 million views, and a 20 million event count over the last 30 days, with detailed graphs and real-time active user data. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/e/9/4/e9446db1cd9878ca77e918f78610b7b837c204d7.png)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 10, 2025, 6:47am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/7 "2025-02-10T06:47:31Z")

</div>

Has nothing to do with nature of your site. The most are useless seo-bots, scrapers and knockers. There is only about dozen you want, and easily 99% of total amount only increases the load of your server.

I mean you should first take that load off, and after that start wondering if showing discourse comments are an issue.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [February 10, 2025, 3:40pm UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/8 "2025-02-10T15:40:17Z")

</div>

@shuaiZend Can you confirm the exact issue you’re having? Are the comments not loading? Please share an example link or screenshot if you can.

---

<div class="post-metadata">

### Author: ![shuaiZend](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shuaizend/32/215714_2.png) [@shuaiZend](https://meta.discourse.org/u/shuaiZend)
#### Post date: [February 13, 2025, 7:23am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/9 "2025-02-13T07:23:51Z")

</div>

yes, I setting use AJAX.  
But comments not loading.

## USED AJAX

 ![The image shows the WP Discourse settings page within WordPress, detailing various options for configuring comment structures and display methods, including whether to display comments with Ajax, load a CSS file, and options for linking and displaying WordPress comments. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/b/b/2/bb2b84e3bf71f60570dd4f24d245c23c37a2f5d9.jpeg)  
 ![This image shows a split-screen view with a web page being tested and the code editing part of LightCode on the right, with a red arrow highlighting a "Comments" section. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/d/1/8/d186e85ec6f7a25ce6355b78676cd5d1d55bf5c0.jpeg)

## Disabled AJAX

Only “Load comments with Ajax” Disabled:

 ![The image shows a section of a webpage titled "Comments" featuring one notable reply by a user named "Shuai" with a puzzle icon next to their name, and the words "discourse comments test" below their entry. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/d/1/f/d1f83619d991a099cfb43bf6e77f7b8ff8b8a7b6.png)

## other

test: [discourse comments test – test](http://blog.giztop.com/2025/02/08/discourse-comments-test/)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [February 13, 2025, 7:53am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/10 "2025-02-13T07:53:36Z")

</div>

Hey @shuaiZend, thanks for trying to explain. However, I’m still not quite sure what the problem is? The comments are loading when you have “Load comments with Ajax” disabled. Why not just leave that setting disabled?

---

<div class="post-metadata">

### Author: ![shuaiZend](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shuaizend/32/215714_2.png) [@shuaiZend](https://meta.discourse.org/u/shuaiZend)
#### Post date: [February 14, 2025, 9:10am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/11 "2025-02-14T09:10:32Z")

</div>

Because WordPress has a lot of traffic and uses full page cache, I hope to dynamically load comments in the form of ajax without affecting the performance of WordPress.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 14, 2025, 9:29am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/12 "2025-02-14T09:29:51Z")

</div>

I still can’t understand why you don’t exlude commenting from caching, as you should (and BTW what is guided by a plugin that does caching for you; if you do caching via a reverse proxy, as Nginx or Varnish, that job is even easier).

And you really should kill the overload, that isn’t coming from people. And tune up your php-fpm settings.

You are now solving in wrong place.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [February 14, 2025, 9:44am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/13 "2025-02-14T09:44:03Z")

</div>

> [@Jagster](#):
>
> exclude commenting from caching

@shuaiZend This is indeed the first step I’d also recommend. Are you able to do this?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [March 3, 2025, 2:17pm UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/14 "2025-03-03T14:17:10Z")

</div>

@shuaiZend I just wanted to circle back here as I’m currently working on the next version of the plugin. Did you try removing commenting from caching?

---

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [October 21, 2025, 3:59am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/15 "2025-10-21T03:59:28Z")

</div>

Are there options/avenues for customizing the output of the Discourse Comments Block? The “Notable Replies” is not quite what my folks want.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 21, 2025, 8:47am UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/16 "2025-10-21T08:47:01Z")

</div>

Hey Alan, yes you can use the “Text Content” tab in [WP Discourse](https://github.com/discourse/wp-discourse) admin to update the “Notable Replies” copy.

---

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [November 13, 2025, 7:03pm UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790/17 "2025-11-13T19:03:41Z")

</div>

Holy cow, how did I miss that? Sorry- that takes care of it and more.
