Why enable wordpress post comments?

I really don’t want to enable Wordpress comments on posts in order to use Discourse for commenting.

Is there any way we can bypass that requirement?

Sure, just uncheck this box:

It’s under /wp-admin/admin.php?page=wp_discourse_options&tab=commenting_options

Although there’s definitely value in having commenting enabled, your content gets exposed to your community (and vice versa), users only have to familiarise themselves with a single interface and if the filtering features appeal you can easily curate the comments which appear on your wordpress front end.

Wait, I don’t understand. I do want (certain) Discourse comments to show up. I was planning on using this option: “Only Import Moderator-Liked” to just show the best comments.

But my understanding is that I have to check the box you showed above and turn on Wordpress comments on the post in order to have it work. Am I wrong?

Yes, if you don’t check that box then Discourse won’t insert any comments back on your WordPress blog.

Users can’t post to Discourse directly from the WordPress site, if they click to comment they are taken back to the community, what is it you’re looking to disable specifically? Or are you looking to have WordPress comments PLUS Discourse comments?


The question is why I need to also enable Wordpress comments in order to get this functionality. I’d rather leave Wordpress comments off. After all, Im not using them. I’m using discourse comments.

ETA: I may be crazy, but for example, if I need to disable the WPDiscourse plugin for some reason for testing or while Discourse isn’t working or something (this sort of thing happens to me. lol) I don’t want to have Wordpress comments suddenly enabled. I never want Wordpress comments, especially not accidentally, so I hate the thought of enabling them.

If you disable WordPress comments and only enable them in wp-discourse the CTA should still appear.

The WP Discourse plugin hooks into the WordPress comments_template filter to load its comments template. You need to allow comments on a post until at least one comment has been added on Discourse to get Discourse comments to display on WordPress.


This is reasonable. Maybe an option could be added to the plugin to disable WordPress comments when the plugin is disabled.

1 Like

How can the plugin do anything while it’s disabled?

Might be easier to target the usual wp comments divs and hide them with css.

I thought that but I disabled wp comments site wide on a test site and still see the cta on posts with no comments. Will test further.

1 Like

Sorry for my ignorance. What is CTA?

I’m assuming Call To Action
eg. “leave a comment”


The plugin could add an option that hooks into the WordPress deactivation hook to disable comments for all posts.

That might help, but actually, looking closer, I’ve got a bigger problem. I have no way of preventing Wordpress comments, even while the plugin is in use.

Here’s what I want:

  1. I don’t want any comments except for on Discourse.
  2. I don’t want Discourse comments on every post.
  3. I want sensible default settings to avoid mistakes and reduce work for authors/editors on WP.

The problem I have is that if I make comments disabled on my site by default, every post that we want comments on we have to manually intervene and turn comments on, even if I set the WP-Discourse settings to default to create a new topic on Discourse. Of course, if I go the other direction, the same problem occurs, but worse. Changing the Discourse setting to not create a topic over on Discourse seems like it would take care of turning off commenting on a post, but it doesn’t. Instead, I end up with a WP comment form and WP comments!

So to sum up, I think that it’s silly that I have to check two settings in every single post, and make sure they are set to the same thing to get sensible behavior. Both need to be on, or both need to be off. Why not just have a single setting? And even more problematic for me is that if the settings are not kept in sync (both on, or both off), there can be behavior that I really don’t want (WP comments), and I have no way to prevent it with this plugin.

Edited to add:
Even more disconcerting is the fact that turning Wordpress comments off on a post completely makes everything from WP-Discourse disappear, even when I have the “Link to Comments Without Displaying Them” setting enabled (which I’ve been discussing with you over here, in case others are interested.)

WordPress comments need to be enabled to display Discourse comments. Not wanting to display the WordPress comment form for posts that have not been published to Discourse seems reasonable. There are a couple of ways the plugin could deal with this without requiring the comment settings to be configured for each post. I’ll try to get this added to the next update. Until then, you are going to have to toggle the comment settings for each post to get the behaviour you are looking for.


Can do. Will do. Thanks for helping me understand everything.

If you update to WP Discourse 1.7.7, you can now keep WordPress comments and the WordPress comment form from displaying for posts that have not been published to Discourse. To do this, enable the ‘Remove WordPress Comments Template’ option. It’s found on the Commenting Settings tab.

If you have WP-CLI available for your site, you can disable comments for all posts with this command:

wp post list --format=ids | xargs wp post update --comment_status=closed

Awesome, sounds like I need to try this out on one of our installs. The existing behavior was fine providing you anticipated it, this is even easier though.

Looking forward to trying this out. Also, that’s a really helpful tip! Thanks on both counts.