In a discussion titled “Issues with setting up Discourse with WordPress,” theRAGEhero seeks help configuring the WordPress-Discourse plugin. They have two main concerns: (1) how to enable commenting on existing WordPress posts that lack linked Discourse topics — asking whether users can create new Discourse topics linked to those posts, or if admins must manually publish from WordPress to Discourse; and (2) how to display old WordPress comments alongside new Discourse comments without showing the WordPress comment form, which risks confusing users. angus replies that either approach — user-created topics or admin-published posts — works, as long as the WordPress post is linked to a Discourse topic via the “Link to Existing Topic” option. Regarding old comments, angus explains that enabling “Show Existing WP Comments” displays Discourse comments above the WordPress comment template, which still includes the comment form. To hide it without coding, angus suggests disabling WordPress comments globally or per-post via Settings > Discussion — for example, unchecking “Allow people to submit comments on new posts” or setting “Automatically close comments on posts older than” to 0. This preserves old comments while hiding the WordPress form, ensuring users comment only via Discourse. theRAGEhero thanks angus and plans to test the solutions.
Hello!
I’m super happy of Discourse and the existance of a plugin for Wordpress tough I’m having some issues with comments.
I’have setup everything but there are some stuff that are not completely clear to me.
I have old posts on Wordpress, and if a user wants to comment them, and I don’t have a linked post on Discourse, how does it work?
Can the user create a new topic on Discourse linked to Wordpress Post or do I have publish from Wordpress to Discourse if I want users to be able to comment?
Example: Archivi fantastici e dove trovarli (online) – 9minuti This post also has old comments that are not visibles because there is not a Discourse post linked.
I have a post on Wordpress with old comments and I would like to have them listed in the Wordpress post and use Discourse for new posts. I saw that Discourse has this option, but the Wordpress form is still visible at the end of the Wordpress post. If I let it in this way people are going to comment in the normal way without usind Discourse…
Example: Barbero Time, la time line di tutti i video integrali – 9minuti
Thank you in advance. I’ve searched on google before asking but I didn’t find anything related.
Alessandro
You can do either. The key is you need to establish the connection between the two. Once that is there, the commenting functions will work. I’m guessing you know how to do handle the “Publish to Discourse” option, i.e. when the post is created. For the linking option, you can link any Discourse post to a Wordpress Post by using the “Link to Existing Topic” publishing option in the sidebar when you’re editing the Wordpress post.
The key here is that when you have the “Show Existing WP Comments” setting enabled the wp-discourse plugin inserts the Discourse comments (i.e. the posts from the linked topic) on top of the normal Wordpress comment template, which retains all of its normal Wordpress functionality.
This means that one way you can handle this is in your Wordpress theme, by modifying the Wordpress comments.php template. You can do anything with the Wordpress comments using this approach.
However, if coding is not an option you can turn off Wordpress comment compose (or “close” the Wordpress comments) in the Wordpress Admin UI the same way you would normally in Wordpress. Go to “Settings” > “Discussion” and then:
For new posts, uncheck “Allow people to submit comments on new posts”.
For old posts, set “Automatically close comments on posts older than” to 0.
The upshot of this is that you’ll retain your old comments below the new Discourse comments and the Wordpress comment compose will not be visible.