שילוב Wordpress/תוסף

סיכום מבוסס בינה מלאכותית

The discussion revolves around integrating a WordPress site with a self-hosted Discourse community. omiebi asks if embedding a WordPress site within Discourse is possible. angus recommends using the WP Discourse Plugin for integration between separate sites, emphasizing that this is the preferred method. jimkleiber suggests embedding WordPress via an iframe, noting that the domain must be allowed in Discourse settings and that Discourse topics can be published as pages. angus cautions against iframe use, citing technical issues and user experience concerns, and advises using a common header instead. omiebi clarifies the goal is to drive traffic between both platforms, while jimkleiber agrees to keep them separate for now.

Hello everyone, is it possible to embed a Wordpress site on my self hosted discourse community?

Hey @omiebi, welcome to Discourse Meta.

The best way to work with both Wordpress and Discourse is to have Wordpress and Discourse on separate servers (i.e. at different web addresses), and connect them using the WP Discourse Plugin. Please check out the introduction to the WP Discourse Plugin here:

Another way, if you just want to access the Wordpress site within Discourse, would be to embed it with an iframe. I think you also have to make sure you put the domain of the WP site in the allowed iframes admin setting.

There’s also an option to publish a Discourse topic as a page, which could help you make that iframe its own separate page within Discourse.

You could technically do this, but I would advise considering other options first :wink:

Haha I assumed you might but I’m not sure what are the main downsides. The upsides would be having only one place for people to visit, at least in my case, where the WP is almost a shadow site that people mostly just see embedded in the Discourse site.

What are some of the downsides of this?

There’s a short answer and a long answer to this.

The short answer is that

  1. Lots of things break using an entire site in an iframe, particularly with a pluggable system like Wordpress (like they do in Discourse), and

  2. In my experiencing working with this kind of request over the years the upside that people typically perceive in doing something like this is pretty illusory. A site admin often feels it’s “neater” to have a “single place” so to speak, however their users don’t typically either notice or care.

In about 7 years of responding to this kind of request from clients I have yet to come across a situation when it actually makes sense to use an iframe. In most cases the better way of making Wordpress and Discourse feel like they’re part of the same “site” is to use a common header.

Thanks @jimkleiber and @angus . So i am basically trying to drive traffic to both platforms. I want the visitors on the discourse community to always see the embedded page of the WordPress site and vice versa.

Ah, then I’ll take your word for it for now and keep them separate and see how it goes. Thanks!