# 在WordPress中显示最新帖子的最简单方法是什么？

**URL:** <https://meta.discourse.org/t/what-is-the-simplest-way-to-show-last-posts-in-wp/174857>\
**Category:** WordPress\
**Created:** [2021年一月3日 13:18 UTC](https://meta.discourse.org/t/what-is-the-simplest-way-to-show-last-posts-in-wp/174857 "2021-01-03T13:18:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico\_Enrico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/enrico_enrico/32/201094_2.png) [@Enrico\_Enrico](https://meta.discourse.org/u/Enrico_Enrico)\
**Post date:** [2021年一月3日 13:18 UTC](https://meta.discourse.org/t/what-is-the-simplest-way-to-show-last-posts-in-wp/174857/1 "2021-01-03T13:18:10Z")

</div>

我需要在 WordPress 网站上显示来自 Discourse 的最后 N 条帖子预览及链接。

- [WP Discourse](https://github.com/discourse/wp-discourse) 插件无法满足我的需求：我不想将 WordPress 与 Discourse 集成，只想导入最近的帖子。
- [WP Discourse](https://github.com/discourse/wp-discourse) 结合 [WP Discourse](https://github.com/discourse/wp-discourse) Widgets 插件无法工作（该插件已三年未更新）。
- 我在论坛上找到的 twiganything 方案已不再支持 [Twig Anything – Show any data from Discourse in Wordpress – an Open Source WordPress plugin](https://meta.discourse.org/t/twig-anything-show-any-data-from-discourse-in-wordpress-an-open-source-wordpress-plugin/84793)
- 尚未找到任何简单的方法来轻松展示来自 “latest.json” 的数据。

---

<div class="post-metadata">

**Author:** ![sedget](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sedget/32/49494_2.png) [@sedget](https://meta.discourse.org/u/sedget)\
**Post date:** [2021年一月3日 17:26 UTC](https://meta.discourse.org/t/what-is-the-simplest-way-to-show-last-posts-in-wp/174857/2 "2021-01-03T17:26:33Z")

</div>

您好，您可以使用最新的 RSS 订阅源来实现。每个论坛的订阅源位置都相同，例如在 Meta 论坛中：[Discourse Meta - Latest topics](https://meta.discourse.org/latest.rss)

此致

---

<div class="post-metadata">

**Author:** ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)\
**Post date:** [2021年一月25日 06:05 UTC](https://meta.discourse.org/t/what-is-the-simplest-way-to-show-last-posts-in-wp/174857/3 "2021-01-25T06:05:46Z")

</div>

> [@Enrico\_Enrico](#):
>
> 我在本论坛找到的 Twig Anything 解决方案已不再受支持 [Twig Anything – 在 WordPress 中显示来自 Discourse 的任何数据 – 一个开源 WordPress 插件](https://meta.discourse.org/t/twig-anything-show-any-data-from-discourse-in-wordpress-an-open-source-wordpress-plugin/84793)

你好 Enrico，是出故障了吗？

---

<div class="post-metadata">

**Author:** ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**Post date:** [2021年一月25日 15:22 UTC](https://meta.discourse.org/t/what-is-the-simplest-way-to-show-last-posts-in-wp/174857/4 "2021-01-25T15:22:15Z")

</div>

你试过这个吗？[Embedding a list of Discourse Topics in another site](https://meta.discourse.org/t/embedding-a-list-of-discourse-topics-in-another-site/125911?u=jonathan5)

我之前用过一段时间（不过不是在 WordPress 中），效果还可以，但偶尔显示不太正常，所以我现在直接使用 Discourse 的 RSS 订阅源。
