Link existing forum topic to new WordPress post

Yes it does. I’ve moved this discussion to an existing topic. There seem to be two separate feature requests in this topic: linking posts in a way that will pull the Discourse comments to WordPress, and just adding a Discourse topic link to a WordPress post.

It is possible to link an existing post to an existing topic so that the Discourse comments are displayed on WordPress. This is based on what @joebuhlig does in the PR in this topic, but with some changes to the Discourse meta box. When the WordPress post editor for a post that is not linked to Discourse is opened, it will first look like this:

12%20PM

Selecting Create new Topic displays this:

Selecting Link to Existing Topic displays this:

After either creating a topic, or linking to an existing topic, the metabox displays this:

Selecting the Unlink Post checkbox removes the Discourse metadata from the post so that it no longer displays Discourse comments.

The biggest issue with doing this is that it’s not possible to set the Discourse topic embed_url for topics that already exist on Discourse. That could be made to work, but would require some changes to the Discourse code.

9 Curtiram