# Embed Discourse using external\_id

**URL:** https://meta.discourse.org/t/embed-discourse-using-external-id/266171
**Category:** Development
**Tags:** embedding
**Created:** [May 25, 2023, 9:23am UTC](https://meta.discourse.org/t/embed-discourse-using-external-id/266171 "2023-05-25T09:23:12Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [October 3, 2023, 6:04am UTC](https://meta.discourse.org/t/embed-discourse-using-external-id/266171/3 "2023-10-03T06:04:09Z")

</div>

I think that what you are trying to do is outlined here [https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963#alternate-configuration-linking-to-existing-topics-6](https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963#alternate-configuration-linking-to-existing-topics-6)

That would be useful for the case where you want to link existing posts from an external site with existing Discourse topics. That code would need to be added to each of the external posts that you wanted to link to Discourse. For each post, you would need to set the `topicId` parameter to the ID of the Discourse topic you wanted to link to.

If this doesn’t solve the problem for you, can you explain what you are trying to do in more details?

---

_[View the full topic](https://meta.discourse.org/t/embed-discourse-using-external-id/266171)._
