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

Hi Simon,

Thanks for explaining it to me

こんにちは…このトピックは古くなっているのは分かっていますが、Discourse を全く初めているので、本当に知りたいことがあります。

特定の条件に基づいて、WordPress の投稿からディスカッションへ自動投稿することは可能でしょうか?例えば、WP 投稿に少なくとも 3 つのコメントがある場合にのみ、Discourse への自動投稿がトリガーされるようにすることはできますか?

投稿が Discourse に公開されたとき、WordPress のコメントはどうなるのでしょうか?この投稿は、WordPress のコメントと Discourse のコメントが別々に存在することになるのでしょうか?:thinking:
WordPress の投稿には、どのコメントが表示されるのでしょうか?

返信ありがとうございます。

実は、WP投稿での議論を減らし、本格的な議論はフォーラムに移動させたいと考えています。具体的には、投稿に最大3つのコメントがある場合、その投稿専用のフォーラムが作成されます。WP投稿ページには、フォーラムから最新の3件のコメントのみが表示され、コメントセクションの下に「さらに議論する」または「他のユーザーのコメントを読む」ためのフォーラムへのリンクが配置されます。

なお、WP投稿ページからはWPコメントシステムを使って直接コメントを投稿することも可能です。ただし、WP投稿ページから直接新しいコメントを追加すると、それはフォーラムと同期され、WPページには最新の3件が表示され続けます。

少し話題から外れて申し訳ありませんが、気になって質問させてください。
最初の3件のコメントはWordPressから投稿され、その後Discourseでトピックが作成され、WordPressで新しいコメントを投稿するとフォーラムに同期される、という仕組みでしょうか?WPとDiscourseのコメント同期システムはご自身で実装されたのですか?
また、対応するDiscourseのトピックがまだ存在しない状態で、WPで最初の3件のコメントが作成された場合、どうなるのでしょうか?

私の理解が間違っているのか、それともシステムが少し複雑になっているのか分かりません。WPの投稿が公開された時点で自動的に対応するDiscourseのトピックを作成し、WP上にDiscourseからコメントできるリンクを表示するか、あるいはAPIを通じて直接Discourseにコメントを送信するコメントフォームを表示するのはどうでしょうか(これにはコーディングが必要ですが)。

これはプラグインに標準で組み込まれている機能ではありませんが、WP Discourse プラグインを拡張するプラグインを作成することで実現可能だと確信しています。もし、このように拡張できるようにするために WP Discourse プラグインにフックを追加する必要がある場合は、喜んで追加いたします。