# 截断嵌入帖子 - 显示错误的文章

**URL:** <https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900>\
**Category:** WordPress\
**Created:** [2020年四月30日 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:** 1\
**Showing post:** 2

<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:** [2020年四月30日 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](#):
>
> 有时点击按钮显示整篇文章时，会显示错误的 WordPress 帖子。有时正常，有时则混乱。有什么想法可能是什么问题吗？

当您点击“显示完整帖子”按钮时，Discourse 会尝试根据主题的嵌入 URL 获取帖子内容。通常这能正常工作，但由于 WordPress 帖子的标记问题，可能会失败。要解决此问题，您需要配置 Discourse 的 `embed whitelist selector` 设置。有关如何操作的详细信息，请参阅此主题：[https://meta.discourse.org/t/how-to-configure-the-embed-whitelist-selector-setting/134481。](https://meta.discourse.org/t/how-to-configure-the-embed-whitelist-selector-setting/134481%E3%80%82)

有很大几率，将以下值添加到您网站的 `embed whitelist selector` 设置中即可解决问题：

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

```

您需要对此进行测试。如果不起作用，您需要按照我链接的主题中“查找要针对的 CSS 选择器”部分提供的步骤进行操作。

---

_[View the full topic](https://meta.discourse.org/t/truncate-the-embedded-posts-showing-the-wrong-article/149900)._
