# Discourse commenting for more complex, dynamic website

**URL:** <https://meta.discourse.org/t/discourse-commenting-for-more-complex-dynamic-website/15350>\
**Category:** Feature\
**Created:** [6 Maggio 2014, 10:28am UTC](https://meta.discourse.org/t/discourse-commenting-for-more-complex-dynamic-website/15350 "2014-05-06T10:28:52Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![philooo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philooo/32/115228_2.png) [@philooo](https://meta.discourse.org/u/philooo)\
**Post date:** [19 Novembre 2014, 4:20pm UTC](https://meta.discourse.org/t/discourse-commenting-for-more-complex-dynamic-website/15350/10 "2014-11-19T16:20:29Z")

</div>

I found a WP plugin for Discourse, claiming that they can define the ‘Category’  
 → [GitHub - discourse/wp-discourse: WordPress plugin that lets you use Discourse as the community engine for a WordPress blog · GitHub](https://github.com/discourse/wp-discourse)

I am looking into the code but I can’t seem to find how they do it. If someone is familiar with this plugin I’d love to know if this is working or just wishful thinking ;(

![](https://global.discourse-cdn.com/meta/original/3X/b/e/be38d3486786e83823baabd154be7615ad1a6314.jpg)

* * *

What I wish for:

```
<script type="text/javascript">
  var discourseUrl = "http://forums.domain.tld/",
  		discourseUserName = 'Username',
  		discourseEmbedCategory = 'Category/Sub-category',
      discourseEmbedUrl = 'http://forums.domain.tld/article-url.html';

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
      d.src = discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-commenting-for-more-complex-dynamic-website/15350)._
