# Link existing forum topic to new WordPress post

**URL:** https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268
**Category:** Feature
**Tags:** wordpress
**Created:** [2015年一月21日 12:37 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268 "2015-01-21T12:37:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2015年一月21日 12:37 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/1 "2015-01-21T12:37:25Z")

</div>

After migrating from bbPress to Discourse I realised there’s one thing I miss about our old “forum for comments” integration (besides that, everything works way better).

Quite frequently, big news would be shared on the forum _before_ it turned up on the blog. The topics that really stood out could be “featured” via a blog post. Before posting, we’d have the option of bbPress creating a new topic, or simply point to an existing topic, which in this case is what we’d do.

Quite handy!

> [@erlend\_sh](#):
>
> Two bonus features I neglected to mention:
> 
> 1. You can easily re-link old posts by pointing them to a directly related conversation on your forum (in our case they are 100% related since we were using bbPress for comments for a while).
> 
> 2. The whole plugin would become less “magical” this way, since a basic URL is quite straight forward. E.g. if something wrong happened when WP automatically created a topic for you, you could always create a new one manually and point to that one instead.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2015年一月21日 18:56 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/2 "2015-01-21T18:56:33Z")

</div>

This is an awesome idea. Generally the ability to manually adjust the post to topic connection would be hugely helpful.

---

<div class="post-metadata">

### Author: ![molly\_cushing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/molly_cushing/32/88775_2.png) [@molly\_cushing](https://meta.discourse.org/u/molly_cushing)
#### Post date: [2015年一月21日 22:58 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/3 "2015-01-21T22:58:21Z")

</div>

Oh yes! This would be wonderful! As a site that posts news, it could definitely be an incentive for members to participate more in hopes of having their work published.

It’s like the ultimate reward for being an active member. I would love to see this.

---

<div class="post-metadata">

### Author: ![Pierre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pierre/32/36467_2.png) [@Pierre](https://meta.discourse.org/u/Pierre)
#### Post date: [2015年一月23日 04:20 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/4 "2015-01-23T04:20:10Z")

</div>

Great idea! Linking to an existing discourse post would be a great feature for wordpress sites to surface forum content for more exposure on the blog side and lead to additional discussions. Win win for both sides.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2015年一月23日 11:29 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/5 "2015-01-23T11:29:50Z")

</div>

Two bonus features I neglected to mention:

1. You can easily re-link old posts by pointing them to a directly related conversation on your forum (in our case they are 100% related since we were using bbPress for comments for a while).
2. The whole plugin would become less “magical” this way, since a basic URL is quite straight forward. E.g. if something wrong happened when WP automatically created a topic for you, you could always create a new one manually and point to that one instead.

---

<div class="post-metadata">

### Author: ![molly\_cushing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/molly_cushing/32/88775_2.png) [@molly\_cushing](https://meta.discourse.org/u/molly_cushing)
#### Post date: [2015年一月23日 16:38 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/6 "2015-01-23T16:38:07Z")

</div>

> [@erlend\_sh](#):
>
> You can easily re-link old posts by pointing them to a directly related conversation on your forum (in our case they are 100% related since we were using bbPress for comments for a while).

Would this tie into the Discourse commenting plugin then? The comments would be easy to show I’m sure, but I guess you would have to just make sure you don’t select the “publish to Discourse” option in WordPress? That way you’re not posting duplicate posts in the forum.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2015年一月23日 23:54 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/7 "2015-01-23T23:54:26Z")

</div>

“Publish to Discourse” should only be available as an option if the “Use existing topic” field is empty.

The [bbPress plugin](https://wordpress.org/plugins/bbpress-post-topics/) I spoke of deals with it in a similar fashion:

> **[Blog Tool, Publishing Platform, and CMS - WordPress.org](https://wordpress.org/)**
>
> Open source software which you can use to easily create a beautiful website, blog, or app.

---

<div class="post-metadata">

### Author: ![molly\_cushing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/molly_cushing/32/88775_2.png) [@molly\_cushing](https://meta.discourse.org/u/molly_cushing)
#### Post date: [2015年一月29日 16:24 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/8 "2015-01-29T16:24:18Z")

</div>

Ah okay, I only used BBPress briefly but I think that makes sense.

I mentioned the idea to some of the people in my site’s community and they loved the idea. I know that blogging options are used in some of the big names in Forum software and a lot of sites use them to broaden their SEO-- IGN and Buzzfeed are big ones that come to mind.

You could have it automatically post to a category like “Community Written” or something. It would be a great way to scout potential prospects for writing staff.

People love recognition and if you publish someone’s thoughts onto your main page, that has to be encouraging to a) post more often and b) post with substance.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2015年一月29日 17:56 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/9 "2015-01-29T17:56:18Z")

</div>

Just to clarify on one more point, what I’m suggesting here is strictly the ability to link (and unlink for that matter) WordPress posts and Discourse threads as you see fit.

I am _not_ asking for the contents of a linked Discourse post to be pulled into the WP thread or anything like that. That work is up to the Editor. Personally I’d just write a brief manual excerpt (maybe in 140 characters or less and let WordPress deal with the Twitter/Facebook publishing as well) and link to the forum topic, with the comments showing below.

---

<div class="post-metadata">

### Author: ![molly\_cushing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/molly_cushing/32/88775_2.png) [@molly\_cushing](https://meta.discourse.org/u/molly_cushing)
#### Post date: [2015年二月12日 23:54 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/10 "2015-02-12T23:54:43Z")

</div>

To be honest, just the ability to make a forum post publish on the blog, would be a great first step.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [2015年六月11日 13:26 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/11 "2015-06-11T13:26:37Z")

</div>

I needed this, this week in fact. Toyed with trying to move existing posts into the new WP-created topic but it didn’t do what I needed.

Would be a **great** addition for the reasons mentioned previously.

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [2016年六月14日 16:56 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/12 "2016-06-14T16:56:29Z")

</div>

There was a plugin developed a while back but does not look like it has been worked on in awhile. Not sure if this can be incorpated into the wp-discourse plugin.

> [@Plugin for embedding Discourse topics in wordpress pages or posts](https://meta.discourse.org/t/plugin-for-embedding-discourse-topics-in-wordpress-pages-or-posts/30228/):
>
> Hi, I did a quick and dirty wordpress plugin so you can easily embed topic content in your wordpress pages using a shortcode. It is still beta AND I’m not a webdevelopper so be careful using it for the moment. To use it, you just need to provide the url of your discourse forum in the plugin settings and then add this shortcode [discourse topic\_id='xxx'] in the editor. It will include the first post of the topic as pure html in the wordpress page. I did it so our community can create and maint…

---

<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: [2016年六月29日 09:00 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/13 "2016-06-29T09:00:07Z")

</div>

I don’t know if something like that should be in the wp-discourse plugin, but I think that using Discourse to create content for a WordPress site makes a lot of sense.

---

<div class="post-metadata">

### Author: ![robotnjik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robotnjik/32/120095_2.png) [@robotnjik](https://meta.discourse.org/u/robotnjik)
#### Post date: [2016年六月29日 10:52 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/14 "2016-06-29T10:52:29Z")

</div>

I would also like to have this kind of plugin/feature. Our forums are much more active than blog section, and news break first there. In vBulletin 4 was great feature to promote topic to cms/front page as article. Something like that will be awesome to have for Discourse first posts to be published as blog posts in WP.

---

<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: [2017年四月19日 18:22 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/15 "2017-04-19T18:22:52Z")

</div>

I have a situation right now where I want to embed a topic in a couple different sites. Which means that I now have a WordPress site where I want to use an existing topic as the embedded comments. Which brings me to this:

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

This PR adds a field to the meta box (Existing Topic ID). When a value is added to this field it uses that topic for the comments as opposed to the topic that was published. It doesn’t matter if Published is checked or not. This will override it. Clear out the field and it resumes it’s previous setup.

I’d love to see this make it into the core plugin! Let me know if I can do anything to help make it so.

---

<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: [2017年十一月19日 20:55 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/16 "2017-11-19T20:55:45Z")

</div>

I know @simon’s working on something similar but did this make it to the core?

If yes, how do I access this?

---

<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: [2017年十一月19日 20:57 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/17 "2017-11-19T20:57:48Z")

</div>

> [@Quintin\_Par](#):
>
> did this make it to the core?

Not yet. It will be there right away.

---

<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: [2017年十一月19日 21:10 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/18 "2017-11-19T21:10:15Z")

</div>

Not to bug you but I’ve been looking at various options to see how I can get discourse working and WP working on existing topics. Was even contemplating the

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

method.  
It’s a blocker for me from deploying to production.  
Kind sir, can I ask for an ETA? 🙂

---

<div class="post-metadata">

### Author: ![pakl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pakl/32/103617_2.png) [@pakl](https://meta.discourse.org/u/pakl)
#### Post date: [2018年一月17日 10:26 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/19 "2018-01-17T10:26:21Z")

</div>

Thanks for this great plugin @simon. I’d love to use this plugin for my blog but have put manual link to posts in the past. Is there any way I can manually make a connection and tell the plugin that a post already has a topic on discourse?

---

<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: [2018年一月17日 17:57 UTC](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268/20 "2018-01-17T17:57:27Z")

</div>

Not yet, but thanks for the reminder! I’ve been meaning to implement this for a while now. Would a `discourse_topic` shortcode work for you? It would take the topic URL as a parameter.

[下一頁](https://meta.discourse.org/t/link-existing-forum-topic-to-new-wordpress-post/24268.md?page=2)
