Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Connect Multiple WordPress Sites Together (3 Ways)

Managing multiple WordPress sites can be a smart move for your business. It allows you to target different customer groups and keep your main site secure.

But linking these sites and making them work together can be a bit challenging. Don’t worry—it’s easier than you might think.

In this guide, we will explore 3 simple ways to connect all of your WordPress sites.

How to connect multiple WordPress sites together

Why Connect Multiple WordPress Websites Together?

Let’s say you have multiple websites, like a WordPress blog and an online course website.

If someone purchases a course from your blog, you’d have to manually enroll them on your site, which has the learning management system (LMS). This could take a lot of time or cost a lot of money if you need to hire help.

On the other hand, connecting these websites together can automate different tasks and save time.

When a customer purchases the course, they’re automatically registered and enrolled on a separate membership site. This is good practice to keep your main WordPress site secure.

Many people think of creating a WordPress multisite network when connecting numerous sites together. However, you don’t need to run a multisite network to connect each website together. In fact, that’s usually not the best solution.

In the following sections, we’ll show you 3 simple ways of making different websites work together. You can click the link below to jump ahead to any section you’re interested in:

Ready? Let’s dive right in.

Method 1: Connect Multiple WordPress Sites Using a Plugin

The best way to connect two websites and make them talk to each other is by using the Uncanny Automator plugin. It’s the best WordPress automation plugin and helps you create automated workflows on your website.

You can think of the plugin as Zapier for WordPress websites. With Uncanny Automator, you can easily create a connection between multiple websites.

The Uncanny Automation WordPress plugin

For this tutorial, let’s consider a situation where you have a WooCommerce store and a membership website.

We’ll show you how to connect both websites using Uncanny Automator. Our goal is to automatically register customers on your membership website when they buy a course from your store.

Note: Before you start, make sure that you’ve added a product to your WooCommerce store and created different membership levels on your membership site.

Next, you’ll need to install the Uncanny Automator plugin on both of your websites. For more details, please see our guide on how to install a WordPress plugin.

Upon activation, you’ll be asked to install the Uncanny Automator free plugin. The lite version offers limited features and is used as a base for the pro version.

After that, you’ll need to go to Automator » Settings from your WordPress dashboard and enter your license key. You can find the key in the Uncanny Automator account area.

Enter Uncanny Automator license key

After entering the key, don’t forget to click the ‘Activate License’ button.

Now, you’ll need to repeat the activation steps for both WordPress websites.

Creating a Recipe for Purchasing a Product on Your WooCommerce Store

The next step is to create a recipe on your WooCommerce store when customers purchase your product. ‘Recipes’ are automation.

To start, you can head over to Automator » Add New from your WordPress admin panel.

After that, you’ll be asked to select a recipe type. Logged-in recipes are triggered by logged-in users only, while ‘All users can trigger everyone’ recipes.

Select logged in users

Go ahead and select the ‘Logged-in users’ as the recipe type since your customers will be creating an account and logging in to make a purchase. Then, you can click the ‘Confirm’ button.

Next, let’s enter a name for your recipe and select ‘WooCommerce’ as the integration. The name is for your reference only; your users won’t see it.

Enter a name and select WooCommerce as integration

Then, you’ll need to select a trigger for your recipe.

Simply select the ‘A user completes, pays for, lands on a thank you page for an order with a product’ as the trigger.

Select a trigger for your recipe

Next, you’ll be asked to select the trigger condition.

You can select ‘pays for’ as the condition and click the ‘Save’ button.

Choose a trigger condition

After that, Uncanny Automator will ask you to select a product for your recipe.

Go ahead and select the digital product on your WooCommerce store. For this tutorial, we’ll choose ‘WordPress Course: Ultimate Growth Hacking.’

Select a product for recipe

Don’t forget to click the ‘Save’ button after selecting a product.

Now, you’ll need to choose an ‘Action’ for your recipe.

Click the add action button

To create the action, you’ll need to select an integration.

Using a webhook, you can easily send the customer’s registration data to your membership website. A webhook is a bit of code that allows different tools and apps to provide information to other apps in real time.

Go ahead and select ‘Webhooks’ as the integration.

Select Webhooks as integration

Don’t worry. You won’t need to know how to code to use it. We’ll walk you through all the steps.

Now, you can select an action for your chosen integration.

Choose send data to a webhook

Simply select the ‘Send data to a webhook’ option, as seen in the screenshot above.

Next, you’ll need to enter your webhook details.

Enter webhook details

You’ll want to keep this tab open for now.

To complete the recipe on your WooCommerce store and fill in the webhook details, you need to create a webhook on your membership website.

Creating a Webhook on Your Membership Website

First, you’ll want to open your membership site in a new tab. Then, let’s head over to Automator » Add New from your WordPress admin panel on your membership site.

Go ahead and select ‘Everyone’ as the recipe type and click the ‘Confirm’ button.

Select everyone as recipe

After that, you will need to enter a name for your recipe and select a trigger integration.

Simply click the ‘Webhooks’ as the integration.

Choose webhooks as trigger integration

The next step is to select a trigger for your integration.

Go ahead and select the ‘Receive data from a webhook’ option as the trigger.

Select receive data from a webhook

Now, the plugin will show the webbook URL. You can note down the URL in a text file, as we’ll need it later on to finish the recipe on your WooCommerce store.

Then, you’ll want to scroll down to the Fields section. From here, simply enter ‘Email’ under the Key field and select ‘Email’ for the Value type.

Enter field details and cope the webhook link

Don’t forget to click the ‘Save’ button.

Next, you can add an action to your recipe by clicking the ‘Add action’ button.

Click the add action button

There will be different integrations you can choose for your action. Simply select the membership plugin you used to create the membership site.

In our case, we’ll select MemberPress since we used it to set up the membership site.

Choose action integration

After that, you can choose an action for your selected integration.

Since we want our customers to subscribe to a membership automatically, we’ll select the ‘Add the user to a membership’ option.

Add the user as a member

A popup showing that the action will require WordPress user data will then appear.

Go ahead and click the ‘Set user data’ button.

Set user data for MemberPress

Next, you’ll need to choose between an ‘Existing User’ or a ‘New User.’

Simply click the ‘New User’ option.

Select new or existing user

A form will now appear where you can set the user data. You can leave the first name and last name fields blank.

Next, go ahead and click the asterisk icon (*) for the ‘Email’ field. From the dropdown options, you can select ‘Field #1 Email’ under ‘Receive data from a webhook.’

Click the asterisk sign and select email field

You can repeat this step for the ‘Username’ field as well. As for other fields, you can leave them blank.

Now, under the ‘What to do if the user already exists’ option, simply choose ‘Do nothing’ and click the Save button.

Select do nothing and save

Next, you can select the membership plan you want the WooCommerce customer to subscribe to by clicking the Membership dropdown menu.

Besides that, you’ll see more fields for subtotal, tax amount, tax rate, status, gateway, and more. You can leave them to the default setting.

Select a membership plan

Don’t forget to click the ‘Save’ button when you’re done.

If you want, you can add more actions to the recipe, like allowing WordPress to send a confirmation email or registering the user for a Zoom webinar.

If not, basically, that’s it!

You can now publish your recipe. Simply click the ‘Draft’ toggle on the right side of the page and change it to ‘Live.’

Publishing your recipe

Finishing Your Purchase Recipe in WooCommerce

Now that your recipe is active on the membership website, it’s time to finish up the recipe on your WooCommerce store.

First, let’s go back to your WooCommerce website and open the recipe we created earlier. Next, you’ll want to enter the webhook link we copied in a text file (when creating a recipe on the membership site) under the ‘URL’ field.

Enter the copied webhook url

Next, you can scroll down and keep the ‘Request method’ and ‘Data format’ default settings.

Under the ‘Body’ section, you can click the asterisk (*) sign for the ‘Key’ field and select ‘Billing email’ as the option. Similarly, you can select ‘Billing email’ in the ‘Value’ field.

Add additional data for WooCommerce recipe

There’s also an option to send test data to see if your connection is set up correctly.

When you’re done, don’t forget to click the ‘Save’ button.

Next, go ahead and publish your recipe by clicking the ‘Draft’ toggle and changing it to ‘Live.’

Publish your WooCommerce recipe

There you have it!

Now, whenever a customer purchases your selected WooCommerce product, they’ll automatically be subscribed to a membership plan on your membership website.

You can use this same method to set up similar automation to connect multiple WordPress sites together.

Method 2: Create a Subdomain to Connect WordPress Websites

Another way you can connect multiple WordPress websites is by creating a subdomain. However, please keep in mind that these websites will not be in sync automatically, and you will have to update both of them manually.

Subdomains are additional parts of your primary domain name and help you organize different sections of your WordPress website. You can use them to separate other functions from your main website.

For example, let’s you want to create an eCommerce store but keep it away from your main domain. In this case, you can create a subdomain for your online store, and your website will look like this:

https://store.yourexamplewebsite.com

Similarly, you can create a subdomain for different locations, like uk.yourexamplesite.com or fr.yourexamplesite.com.

At WPBeginner, we also use a subdomain for our video content. You can visit https://videos.wpbeginner.com/ and get access to numerous video tutorials on WordPress.

Video subdomain preview

You can easily create a subdomain using your WordPress hosting account. For more details, you can see our explanation about subdomains and how to create one.

Then, you can see our guide on how to install WordPress to create another WordPress site on the subdomain.

You can also connect multiple WordPress sites together by linking them together. The links will help to boost your WordPress SEO by passing authority (link juice) to each domain.

One common way to do this is by adding a custom link to your main navigation menu.

You can also add a link to your website’s footer. For example, on WPBeginner, you’ll see that we’ve linked to websites that are part of the WPBeginner family of products, along with some site links.

Connect sites in footer

To edit your WordPress footer and add links to another website, please see our guide on how to edit the footer in WordPress.

We hope this article helped you learn how to connect multiple WordPress sites together. You can also see our guides on how to manage multiple WordPress sites from one dashboard and how to free disk space and reduce inode usage in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

2 CommentsLeave a Reply

  1. Mrteesurez

    For this purpose, I will try to acquire Uncanny automator, I having been looking for a way to do this. Using subdomain or interlinking is the same as managing two website needing manual update. Using Automator will be of great help which will make the two site sync together.
    Will I be having Automator installed in both site ?

    • WPBeginner Support

      Yes, you would have the plugin installed on both sites.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.