The discussion compares the benefits of using WP comments over JS embeds for Discourse comments. jimkleiber notices that JS embedded comments have more features, but wonders if there are hidden benefits to using WP comments with the WP-Discourse plugin. Falco responds that WP comments are the “low code” solution, making it usable by non-tech people, whereas JS embeds require more technical expertise.
jimkleiber discovers that WP Discourse comments can show comments from a site with login required, even if the user is not logged in, whereas JS embeds require a valid cookie to the Discourse site. Falco clarifies that JS embeds can work with private sites if the user is logged in, but jimkleiber points out that WP Discourse comments can display comments from a private instance even if the user is not logged in or a member.
Ultimately, jimkleiber decides that WP Discourse comments work best for their current setup, where they want public users to see comments on their WP site, but may consider switching to JS embeds if they want to restrict comments to only Discourse members.
I’ve set up the WP comments alongside the WP-Discourse plugin and I just noticed that it’s also possible to embed comments via javascript, as seen on Hacker, Hack Thyself
In scrolling through the JS embedded comments, I see a lot more features (number of replies, clickable dates, replied-to indicators, seemingly cleaner oneboxes, etc) than I see on the WP comments and I’m wondering, are there any hidden benefits to the WP comments coming from the WP-Discourse plugin itself?
AFAIK the main thing is that Wordpress comments are the “low code” solution for using Discourse for comments, so it’s usable by non-tech people on their wordpress instances.
Haha, I’m learning that right now as I try to customize the JS embeds
I just noticed another benefit of WP over the JS embed: it seems that with WP Discourse comments, I can show comments even from a site that has login required, whereas with the JS embed that doesn’t seem possible.
Ah, yes, with JS embedded comments, I’m able to see the comments on a private Discourse when I am logged in to the Discourse, however, not able to see them if I am not logged into the Discourse, a la:
Conversely, with WP Discourse comments, I’m able to see the replies from a private instance even if I am not logged into that private instance or not even a member of it.
I currently have it set up where my Discourse site is login required and yet I want public, non-Discourse users to see the comments on the WP site, so the WP method seems to work best for now.
If I want to allow only Discourse members to see them or I decide to remove the login required option, I’ll probably go with the JS embed because I like the added functionality it gives out of the box.