# 在WordPress博客上显示Discourse的“仅”主题

**URL:** <https://meta.discourse.org/t/displaying-just-the-topic-from-discourse-on-wordpress-blog/183303>\
**Category:** WordPress\
**Created:** [2021年三月15日 13:38 UTC](https://meta.discourse.org/t/displaying-just-the-topic-from-discourse-on-wordpress-blog/183303 "2021-03-15T13:38:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [2021年三月16日 23:47 UTC](https://meta.discourse.org/t/displaying-just-the-topic-from-discourse-on-wordpress-blog/183303/4 "2021-03-16T23:47:29Z")

</div>

要提供具体建议，这里有一张相同的截图，标注了我所说的“主题元数据”和“首帖”分别指什么。

 ![e22a3420286ed2b622f6ed15bc49589fdeaf9792](https://global.discourse-cdn.com/meta/original/3X/d/6/d64ed4ed52c12ebfa5c0155bfdd01f184c2c2991.png)

此外，当我提到“嵌入”时，是指将这两项内容直接显示在 WordPress 页面上。

### 主题元数据

关于嵌入“主题元数据”，这与我之前回复您二月份帖子中的内容相关。我在以下链接中详细说明了操作方法：

> [@WP Discourse plugin tips and tricks](https://meta.discourse.org/t/wp-discourse-plugin-tips-and-tricks/50757#display-metadata-of-a-connected-discourse-topic):
>
> This topic has a number of tips and tricks for users of the [WP Discourse](https://github.com/discourse/wp-discourse) WordPress plugin. Adjust the comments\_number sync period for WordPress archive pages To get the correct number of Discourse comments for a post, the plugin needs to periodically make an HTTP request to Discourse to get the current comments number. On single pages this period is set to be no more often than every 10 minutes. For archive pages the period is set to no more than once every 24 hours. The reason for this is to a…

### 首帖

关于嵌入“首帖”，我在以下链接中已做过说明：

> [@Embed a single post / reply in the body of a WordPress post?](https://meta.discourse.org/t/embed-a-single-post-reply-in-the-body-of-a-wordpress-post/182269/2):
>
> Hey @martym, The easiest way of selecting specific posts for Wordpress comments out of the box is using this commenting option: 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 Comments functionality, or embed it with…

您可以将上述两种方法结合，把整张截图嵌入到 WordPress 页面或文章中。不过，这两种方法都需要进行 WordPress 编程，因此您需要一位 WordPress 开发人员协助。

---

_[View the full topic](https://meta.discourse.org/t/displaying-just-the-topic-from-discourse-on-wordpress-blog/183303)._
