# Embedding Topic topic-map or Topic Summary on Other Site

**URL:** https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445
**Category:** WordPress
**Created:** [May 25, 2018, 11:34am UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445 "2018-05-25T11:34:18Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Curtis\_Kephart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curtis_kephart/32/89070_2.png) [@Curtis\_Kephart](https://meta.discourse.org/u/Curtis_Kephart)
#### Post date: [May 25, 2018, 11:34am UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/1 "2018-05-25T11:34:18Z")

</div>

Related to discussions on [embedding discourse comments into word-press sites](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752) and the discussion on “[Embedding Discourse Comments via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963)”, I am curious if you could advize me on embedding a topic topic-map into a another website?

I seem to recall readiing that topic-maps are not generated until at least one reply occurs. So, perhaps I am making a different request, asking for advice to embed a widget with a similar set of summary information that could be embedded off-site.

**Why?** , I desire to embed comments on off-site pages with limited space. Rather than the current embedding option that shows a list of comments, I feel these topic-maps are efficient summaries of discussion.

### My goal would be a widget that looks something like:

> ### Discuss this post at [discourse.example.com](http://discourse.example.com)
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/e/d/edacef20d9719cc8a4046ba3e67ed6da941e7298.jpg)

* * *

Topic-map examples:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/5/958ff4cc6c8d6bba35aab2a8c13932100a7baa95.jpg)

Expanded:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/1/31e659a8a7a11441f3078801d2ba9c3a4b4c3baa.jpg)

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [May 25, 2018, 11:52am UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/2 "2018-05-25T11:52:54Z")

</div>

This sounds like a really cool idea.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [August 30, 2018, 3:41pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/3 "2018-08-30T15:41:05Z")

</div>

Currently we have a completed WordPress plugin that can do this, but the question I have right now is whether or not it would be accepted as a PR on the `wp-discourse` repo. We can develop the settings and such for it, but don’t want to go through the trouble if it’s not an acceptable expansion on the core plugin.

Would someone from the team be willing to weigh in on this one?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [August 30, 2018, 4:12pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/4 "2018-08-30T16:12:36Z")

</div>

Oh I would love to see this. You need any extra testers?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 4, 2018, 6:44pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/5 "2018-09-04T18:44:00Z")

</div>

I really like this idea. I’m not sure about adding it to the wp-discourse plugin. Would it be possible to get it to work as an extension to wp-discourse? If any additional hooks were required to get this to work, they could be added to wp-discourse.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [September 4, 2018, 7:16pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/6 "2018-09-04T19:16:50Z")

</div>

The current method is simply with code added to the `functions.php` file. But the data required wasn’t being passed along. Let me see if there’s a way to add a hook to collect it and if so, we’ll submit a PR for it. 😉

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [September 19, 2018, 8:28pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/7 "2018-09-19T20:28:43Z")

</div>

Any news on this? Or any chance you can share the code you are currently using? Or even just point us to an example site where it is deployed, @joebuhlig?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [September 19, 2018, 8:50pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/8 "2018-09-19T20:50:25Z")

</div>

It’s not deployed publicly anywhere as it needs some filters which will be submitted to `wp-discourse` as PRs. But for now, the existing project lives here:

[https://github.com/procourse/wpdc-embed-topic-map](https://github.com/procourse/wpdc-embed-topic-map)

I should also note that this is being sponsored by @Curtis_Kephart and the RStudio team. Big thanks to them for helping us get this going. 👍

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [September 19, 2018, 8:51pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/9 "2018-09-19T20:51:53Z")

</div>

Thanks for the link, and big props to @Curtis_Kephart and RStudio!

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [September 27, 2018, 4:17pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/10 "2018-09-27T16:17:17Z")

</div>

Ok, here we go. The repo above works when the following PR is merged.

[https://github.com/discourse/wp-discourse/pull/321](https://github.com/discourse/wp-discourse/pull/321)

@simon, I’m aware that this is quite a large PR. The biggest piece is the pulling of the popular links section. That mechanism needed quite a bit of work. So if we need to scale this back to be acceptable, just let us know.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [September 27, 2018, 10:33pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/11 "2018-09-27T22:33:45Z")

</div>

Is this in use publicly anywhere yet?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [September 27, 2018, 10:49pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/12 "2018-09-27T22:49:12Z")

</div>

No. It still requires the PR at the moment.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [September 28, 2018, 1:15pm UTC](https://meta.discourse.org/t/embedding-topic-topic-map-or-topic-summary-on-other-site/88445/13 "2018-09-28T13:15:52Z")

</div>

Looks like it failed CI checks for mostly stylistic reasons, but there are a few errors there worth checking out.
