# Open WP as a subdomain of Discourse (different hostings, only DNS pointing)

**URL:** https://meta.discourse.org/t/open-wp-as-a-subdomain-of-discourse-different-hostings-only-dns-pointing/150830
**Category:** WordPress
**Created:** [May 8, 2020, 1:00pm UTC](https://meta.discourse.org/t/open-wp-as-a-subdomain-of-discourse-different-hostings-only-dns-pointing/150830 "2020-05-08T13:00:20Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 8, 2020, 4:31pm UTC](https://meta.discourse.org/t/open-wp-as-a-subdomain-of-discourse-different-hostings-only-dns-pointing/150830/4 "2020-05-08T16:31:48Z")

</div>

> [@Ed\_Bobkov](#):
>
> user logs in Discourse and get access to wordpress?

This is possible. Have a look at the “WordPress as the SSO Client” section of [Install and configure the WP Discourse Wordpress plugin for Discourse](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752).

> [@Ed\_Bobkov](#):
>
> The logic is following:
> 
> 1. User visits main Discourse site. Signup at Discourse site (Important), because Discourse is a main entrance.
> 2. When the user wants to pay for a membership the user goes to the subdomain Wordpress.Discourse.site. this site is used ONLY to serve memberships.
> 3. The user doesn’t need to login Wordpress, because he is logged in Discourse already.
> 4. User pays and WP membership plugin adds him to a specific group, granting necessary access.
> 5. User is redirected to the main Discourse.site.

The plugin can be configured to handle everything up until your 4th point. The [WP Discourse](https://github.com/discourse/wp-discourse) plugin doesn’t know anything about the membership plugin that you have installed on your WordPress site, so any integration between that plugin and Discourse will have to be developed by you. It should be possible to do this, but the most common use of the [WP Discourse](https://github.com/discourse/wp-discourse) plugin with memberships is to have WordPress as the SSO provider for Discourse, so there are not any code examples that I know of that are doing things in the way you are proposing. I think it would be a good use of the plugin though.

---

_[View the full topic](https://meta.discourse.org/t/open-wp-as-a-subdomain-of-discourse-different-hostings-only-dns-pointing/150830)._
