# Displaying comments embed as a link without using the WP plugin

**URL:** https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854
**Category:** Support
**Created:** [September 30, 2019, 1:01pm UTC](https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854 "2019-09-30T13:01:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ahmadabdolsaheb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmadabdolsaheb/32/138662_2.png) [@ahmadabdolsaheb](https://meta.discourse.org/u/ahmadabdolsaheb)
#### Post date: [September 30, 2019, 1:01pm UTC](https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854/1 "2019-09-30T13:01:50Z")

</div>

Hello everyone,

I am working on integrating the Discourse commenting embed with functionalities similar to [BoinBoing](https://boingboing.net/2019/09/28/save-over-90-on-this-streamli.html?utm_source=moreatbb&utm_medium=nextpost&utm_campaign=nextpostthumbnails#boingboing_728x90_468x60_300x250_LongForm_InContent_1),  
where the integration acts as a link and takes users to the related topic.

Here is the screenshot of boing boing’s implementation.  
 ![image](https://global.discourse-cdn.com/meta/original/3X/1/e/1ef0e643894cc9fe8255d6e143ba3acd2eb28be2.png) Screen Shot 2019-09-30 at 12.09.54 PM

To my understanding, this feature is possible by setting the commenting options in [WP Discourse plugin](https://github.com/discourse/wp-discourse/blob/2c34465d3d16b3b8df73dcc2b028d1481e3e96c6/lib/discourse.php#L224).

I was wondering if it would be possible to implement this feature for other CMS’s such as ghost.

Thank you.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 30, 2019, 3:07pm UTC](https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854/2 "2019-09-30T15:07:29Z")

</div>

Sure, this is possible. Take a look at

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

You can see it in action on @codinghorror’s own blog at [https://blog.codinghorror.com/](https://blog.codinghorror.com/).

---

<div class="post-metadata">

### Author: ![ahmadabdolsaheb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmadabdolsaheb/32/138662_2.png) [@ahmadabdolsaheb](https://meta.discourse.org/u/ahmadabdolsaheb)
#### Post date: [September 30, 2019, 6:46pm UTC](https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854/3 "2019-09-30T18:46:46Z")

</div>

Thank you for the reply.

That is a good example; However, it creates a topic the first time a post is visited and the embed script is ran.

That results is a flood of topics with no comments.

I am looking for a link like implementation where a topic is created only when that “link” is clicked for the first time.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 30, 2019, 8:41pm UTC](https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854/4 "2019-09-30T20:41:21Z")

</div>

Good point. I don’t know how to do that, though I suppose you could adapt the embed code to only fire when someone clicks a link. I had a scan through that topic and I don’t think anyone has asked about the challenge you describe.

I’ve thought about this as well, for my site which is on wordpress and uses the wp-discourse wordpress plugin. We have a resource library with thousands of posts, one per resource. We’d like to be able to allow members to start topics in the forum about resources without having to create thousands of topics in advance. So a link to select to start the topic and add the first reply would be great!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 28, 2023, 12:54am UTC](https://meta.discourse.org/t/displaying-comments-embed-as-a-link-without-using-the-wp-plugin/129854/5 "2023-05-28T00:54:13Z")

</div>


