raulcraveiro reported that WordPress comments were appearing on posts not published to Discourse, despite having the “Do not load the WordPress comments template for posts that are not Published to Discourse” option enabled. simon acknowledged the issue and fixed it within hours by releasing WP Discourse version 2.1.1. The update ensures the “Remove WordPress Comments Template” setting is respected: if enabled, WordPress comments won’t load for posts not published to Discourse — unless both that setting and “Show Existing WP Comments” are enabled, and the post already has WordPress comments. raulcraveiro confirmed the fix worked after updating.
I have the option “Do not load the WordPress comments template for posts that are not Published to Discourse.” checked, but in the last few days, the posts that don’t have a post on the Discourse are showing the WordPress comments.
I’ve tried to uncheck and check it again but It didn’t worked.
WP Discourse version 2.1.1 has been pushed to WordPress. It fixes the issue with the “Remove WordPress Comments Template” setting not being respected.
The logic that setting uses is that if it is enabled and a post has not been published to Discourse, the WordPress comment template will not be loaded. If the setting is enabled, and the “Show Existing WP Comments” setting is enabled, and the post has existing WordPress comments, the WordPress comments template will be loaded. This behaviour matches the setting’s description, but possibly it should be simplified so that if the “Remove WordPress Comments Template” setting is enabled, the WordPress comments template is never loaded.