# Embed a single post / reply in the body of a WordPress post?

**URL:** https://meta.discourse.org/t/embed-a-single-post-reply-in-the-body-of-a-wordpress-post/182269
**Category:** WordPress
**Created:** [March 6, 2021, 12:27am UTC](https://meta.discourse.org/t/embed-a-single-post-reply-in-the-body-of-a-wordpress-post/182269 "2021-03-06T00:27:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![martym](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martym/32/212243_2.png) [@martym](https://meta.discourse.org/u/martym)
#### Post date: [March 6, 2021, 12:27am UTC](https://meta.discourse.org/t/embed-a-single-post-reply-in-the-body-of-a-wordpress-post/182269/1 "2021-03-06T00:27:21Z")

</div>

I appreciate you can use the [WP Discourse](https://github.com/discourse/wp-discourse) plugin to link posts to topics.

What I’m trying to do is write a blog post and be able to highlight certain replies or topics within the body of the post. Is there an oembed, iframe or other option for doing this for embedding a single reply or single post in the body of a WordPress post? Thanks for any insight!

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [March 7, 2021, 10:59pm UTC](https://meta.discourse.org/t/embed-a-single-post-reply-in-the-body-of-a-wordpress-post/182269/2 "2021-03-07T22:59:40Z")

</div>

Hey @martym,

The easiest way of selecting specific posts for Wordpress comments out of the box is using this commenting option:

```plaintext
Only Import Moderator-Liked

```

However, I suspect you’re after something more targeted, given you’ve mentioned a “single” post and also that you want to embed it in the body of the post itself. It’s not possible to retrieve a single post, based off of the post number (e.g. this post has a post number of `2`) using the [WP Discourse](https://github.com/discourse/wp-discourse) Comments functionality, or embed it within the post body for that matter.

To achieve that, you’ll need to write a custom wordpress script (probably in a seperate wordpress plugin) that creates a shortcode to pull a specific post from your Discourse instance and render it. The shortcode would take a post number as an argument. You’d then use that shortcode in the body of your post.

It wouldn’t be too hard, given you can use the existing authentication details used by the [WP Discourse](https://github.com/discourse/wp-discourse) plugin in the shortcode’s request to your discourse instance, but it would take some coding.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 6, 2021, 11:00pm UTC](https://meta.discourse.org/t/embed-a-single-post-reply-in-the-body-of-a-wordpress-post/182269/3 "2021-04-06T23:00:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
