将WordPress的帖子自动发布到Discourse

Hello,

How did you manage to set up to auto post? I’m having this issue now… To get one post, I have to manually activate the publishing to Discourse option. The same with allowing comments to edit on the post. When I do that and refresh the page, at that point the post is created and there’s a message about the possibility to go to myseite >> https://writemyessay.pro /blog/. How to make it possible to auto post on each topic?

The WP Discourse plugin has two options for getting all posts to be published to Discourse. Both options can be set on the plugin’s Publishing options tab.

If you enable the Auto Publish option, the ‘Publish post to Discourse’ checkbox will be automatically checked when a new post is created. This can be unchecked if for some reason you do not want to publish the post to Discourse.

38%20AM

If you enable the Force Publish option, all posts that are published on WordPress will be automatically published to Discourse in the category you have selected as your Default Discourse Category. Posts that are published through XMLRPC, for example, through the WordPress blogging app, will still not be published to Discourse.

51%20AM

4 个赞

Hi Simon,

Thanks for explaining it to me

你好……我知道这个话题已经有些年头了,但我作为 Discourse 的完全新手,确实需要了解一些事情。

是否可以根据特定条件自动将 WordPress 文章发布为 Discourse 讨论?例如,只有当 WordPress 文章至少有 3 条评论时,才触发自动发布到 Discourse?

当帖子发布到 Discourse 时,你的 WordPress 评论会发生什么?这篇帖子会同时拥有独立的 WordPress 评论和 Discourse 评论吗?:thinking:

WordPress 帖子会显示哪些评论?

感谢您的回复。

实际上,我试图减少 WordPress 文章页面上的讨论,将所有深入讨论转移到论坛。具体来说,当一篇文章的评论数达到三条时,系统会自动为其创建一个对应的论坛主题。WordPress 文章页面将仅显示该论坛主题中最新的三条评论,并在评论区域下方提供一个链接,引导用户前往论坛进行进一步讨论或查看其他用户的评论。

不过,WordPress 文章页面仍允许用户直接使用 WordPress 评论系统进行评论。但一旦用户在文章页面直接添加新评论,该评论将自动同步至论坛,而文章页面上始终只显示最新的三条评论。

抱歉有点跑题,但我很好奇……
所以最初的 3 条评论来自 WordPress,之后话题会在 Discourse 上创建,然后当你在 WordPress 上发布新评论时,它会被同步到论坛?你是自己编写了 WordPress 与 Discourse 的评论同步系统吗?
如果对应的 Discourse 话题尚未存在,那么在 WordPress 上创建的最初 3 条评论会发生什么情况?

我不确定是我理解有误,还是你的系统有点复杂……为什么不直接在 WordPress 文章发布时自动创建对应的 Discourse 话题,并在 WordPress 下方显示一个链接,邀请用户前往 Discourse 发表评论,或者提供一个评论表单,通过 API 直接将评论发送到 Discourse(这需要编程实现)?

该插件本身并未内置此功能,但我相当确信可以通过编写一个扩展 WP Discourse 插件的插件来实现。如果需要在 WP Discourse 插件中添加任何钩子以支持此类扩展,我很乐意添加它们。