# שילוב Discourse ו-Wordpress

**URL:** https://meta.discourse.org/t/discourse-and-wordpress-integration/178535
**Category:** WordPress
**Created:** [5 בפברואר,‏ 2021,‏ 11:32am UTC](https://meta.discourse.org/t/discourse-and-wordpress-integration/178535 "2021-02-05T11:32:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Maharshi](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Maharshi](https://meta.discourse.org/u/Maharshi)
#### Post date: [5 בפברואר,‏ 2021,‏ 11:32am UTC](https://meta.discourse.org/t/discourse-and-wordpress-integration/178535/1 "2021-02-05T11:32:59Z")

</div>

Hey team, we had just recently starting using discourse and have also installed the discourse plugin on Wordpress. We were wondering if it was possible to fetch the title of a topic and its interactions from Discourse post/topic onto our Wordpress post as compared to the comments and the comment thread which the Discourse plugin is already fetching. It would be great if we could have it done by the plugin itself or probably by using a shortcode. Would also like to hear about other methods that could help us out with this. Thanks in advance.

---

<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: [8 בפברואר,‏ 2021,‏ 11:59am UTC](https://meta.discourse.org/t/discourse-and-wordpress-integration/178535/2 "2021-02-08T11:59:15Z")

</div>

Hey there 🙂 and welcome!

> [@Maharshi](#):
>
> We were wondering if it was possible to fetch the title of a topic and its interactions from Discourse post/topic onto our Wordpress post as compared to the comments and the comment thread which the Discourse plugin is already fetching.

Could you explain this a bit more, i.e. what your intended outcome is and why? Sorry but I’m just trying to understand why comments aren’t doing it for you here.

Perhaps your intended outcome is to recreate a “onebox-like” output in a wordpress post? In that case check out this topic for some possible style solutions:

> [@Onebox looks horrible on Discourse Comments (below WP Post)](https://meta.discourse.org/t/onebox-looks-horrible-on-discourse-comments-below-wp-post/78364/19):
>
> Hi @simon Thanks for the update! This is a nice feature. I am looking forward to your function (or even more an option in the plugin settings! star_struck) to extract the link from oneboxes as bare text, to prevent these HTML H3 headers being added [https://www.screencast.com/t/Z7YMuwgBcw6](https://www.screencast.com/t/Z7YMuwgBcw6). As they interfere with my content structure. Thanks again, and if I can help you to speed up development please let me know!

---

<div class="post-metadata">

### Author: ![Maharshi](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Maharshi](https://meta.discourse.org/u/Maharshi)
#### Post date: [9 בפברואר,‏ 2021,‏ 6:39am UTC](https://meta.discourse.org/t/discourse-and-wordpress-integration/178535/3 "2021-02-09T06:39:28Z")

</div>

Hello Angus,

Thanks for responding back to me so soon. We basically wanted to fetch the topic and the title of the thread we had on discourse to our wordpress posts, but the discourse plugin that we have installed only allows us to show the thread of the topic of discourse on wordpress. The other issue is that the thread is written over the wordpress comments and completely takes over that spot. I had gone through the “onebox” type of an output you had shared with me and that seems fair. We could probably change the positioning of the onebox output on our posts on wordpress so it does not get written over our comments probably? Just looking for a little more clarity on this part and then we could probably try and integrate it on our wordpress posts.

Will be awaiting your response.  
Regards,

---

<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: [10 בפברואר,‏ 2021,‏ 1:35am UTC](https://meta.discourse.org/t/discourse-and-wordpress-integration/178535/4 "2021-02-10T01:35:24Z")

</div>

Hey @Maharshi,

I’ve written up a new section of the [WP Discourse](https://github.com/discourse/wp-discourse) Tips and Tricks topic with a guide on how to display the metadata of a connected Discourse topic in Wordpress. Let me know if that answers your question 🙂

> [@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…
