# How to enable Discourse comments via JavaScript in Wordpress?

**URL:** https://meta.discourse.org/t/how-to-enable-discourse-comments-via-javascript-in-wordpress/74402
**Category:** WordPress
**Created:** [November 20, 2017, 6:18am UTC](https://meta.discourse.org/t/how-to-enable-discourse-comments-via-javascript-in-wordpress/74402 "2017-11-20T06:18:17Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [November 20, 2017, 7:04am UTC](https://meta.discourse.org/t/how-to-enable-discourse-comments-via-javascript-in-wordpress/74402/3 "2017-11-20T07:04:44Z")

</div>

See

> [@How to link the existing discourse comments to wordpress posts?](https://meta.discourse.org/t/how-to-link-the-existing-discourse-comments-to-wordpress-posts/45569/3):
>
> 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 suppli…

---

_[View the full topic](https://meta.discourse.org/t/how-to-enable-discourse-comments-via-javascript-in-wordpress/74402)._
