# Truncate the embedded posts - showing the wrong article

**URL:** https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900
**Category:** WordPress
**Created:** [30 april 2020 om 13:02 UTC](https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900 "2020-04-30T13:02:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![steelmaiden](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steelmaiden/32/125527_2.png) [@steelmaiden](https://meta.discourse.org/u/steelmaiden)
#### Post date: [30 april 2020 om 13:02 UTC](https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900/1 "2020-04-30T13:02:46Z")

</div>

Hi,

when i enable this function

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/e/9ebea26ed8e4b35bc60c409d90299e3308bf87de.png)

Sometimes the wrong wordpress post shows when i click on the button to display the whole article. Sometimes its fine, sometimes its mixed up. Any idea what could be the issue?

---

<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: [30 april 2020 om 16:15 UTC](https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900/2 "2020-04-30T16:15:29Z")

</div>

> [@steelmaiden](#):
>
> Sometimes the wrong wordpress post shows when i click on the button to display the whole article. Sometimes its fine, sometimes its mixed up. Any idea what could be the issue?

When you click the Show Full Post button, Discourse attempts to get the post content based on the topic’s embed URL. Generally this works, but it can fail due to the WordPress post’s markup. To fix this, you need to configure the Discourse `embed whitelist selector` setting. You can find details about how to do that in this topic: [Configuring allowed embed selectors](https://meta.discourse.org/t/how-to-configure-the-embed-whitelist-selector-setting/134481).

There is a fairly good chance that adding the following value to your site’s `embed whitelist selector` setting will fix the problem for you:

```plaintext
article .entry-content img, article .entry-content p, article .entry-content ul

```

You will need to test that. If it isn’t working, you will need to go through the steps given in the “Finding the CSS selectors to target” section of the topic that I linked to.

---

<div class="post-metadata">

### Author: ![steelmaiden](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steelmaiden/32/125527_2.png) [@steelmaiden](https://meta.discourse.org/u/steelmaiden)
#### Post date: [30 april 2020 om 20:22 UTC](https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900/3 "2020-04-30T20:22:19Z")

</div>

Would you be so kind to give me the exact values for my website?

Here is link to one article:

> **[Microsoft: Želimo da naučite Python besplatno - GeeK.hr](https://geek.hr/clanak/microsoft-zelimo-da-naucite-python-besplatno/)**
>
> Microsoft je objavio video resurse, kako bi pomogao programerima naučiti Python i kreirati AI aplikacije na Azure servisu.

I tried adding `article .mvp-post-content` and `mvp-post-content` as well as your suggestions above, but it didnt work. When i click on Show Full Post it shows nothing but a link, so i must be using the wrong elements.

---

<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: [1 mei 2020 om 00:01 UTC](https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900/4 "2020-05-01T00:01:24Z")

</div>

There is a lot of markup on that page. I’m not surprised that Discourse is having trouble finding the main post content. Try this to see if it grabs the main content:

```plaintext
article .mvp-main-box #mvp-post-main

```

The results are cached for 10 minutes, so you will have to wait up to 10 minutes to know if the changes are correct.

You could also try just using `article` for the setting. It is possible that will work.
