# How to link the existing discourse comments to wordpress posts?

**URL:** https://meta.discourse.org/t/how-to-link-the-existing-discourse-comments-to-wordpress-posts/45569
**Category:** WordPress
**Created:** [June 11, 2016, 5:52pm UTC](https://meta.discourse.org/t/how-to-link-the-existing-discourse-comments-to-wordpress-posts/45569 "2016-06-11T17:52:47Z")
**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: [June 11, 2016, 10:14pm UTC](https://meta.discourse.org/t/how-to-link-the-existing-discourse-comments-to-wordpress-posts/45569/3 "2016-06-11T22:14:48Z")

</div>

As things are now, it is not possible to use the plugin to link existing Discourse comments to a new WordPress post. The plugin works by creating a new Discourse topic when you select ‘Publish to Discourse’ on the WordPress admin page. The linking is done by setting the WordPress post meta-data `'discourse_permalink'` to the value of the Discourse topic’s `topic_slug`.

It looks like it would be possible to add a feature to the plugin to ‘link to existing Discourse topic’. It would have to be supplied with either the topic\_slug or or the topic URL from Discourse. That’s not going to happen right away though.

---

_[View the full topic](https://meta.discourse.org/t/how-to-link-the-existing-discourse-comments-to-wordpress-posts/45569)._
