Schedule a Free Consultation
Multisite Create Page on All Sites - WPRiders Article

Multisite Create Page on All Sites

Read Article

Have you ever worked on a multisite with 60+ sites?

For projects of this size the deployment is a challenge in itself because you might need to:

  • regenerate the thumbnails on all the 60 sites; Of course, doing it manually is a no go
  • configure a certain page as homepage on all 60 sites
  • if you are working with a preset theme (as we were asked to do), how do you configure 5-10 theme settings on all 60 sites in a humanly reasonable way?
  • create a page with a given slug and template on all sites in a multisite install

Recently we had a project of this magnitude for TiE Global. To streamline the deployment, we wrote a few plugins that handle the deployment automation task for us. And because we’ve received so much from the open source community, we are paying it forward by publishing one of our plugins.

WPRiders Multisite Create pages plugin handles the following tasks:

  1. Create/update a page on all sites of a multisite install
  2. Optionally, set page slug
  3. Optionally, set the template of the page
  4. Optionally, set page as home
  5. Optionally, set page as blog
Multisite Create Page on All Sites - WPRiders Article

In case you are interested in how this plugin works, here are a few snippets together with technical explanations.

Create/Update a Page on All Sites of a Multisite Install and Set the Slug

The create/update page script might timeout due to large number of websites. To avoid using php “set_time_limit” or other server settings we use ajax to execute each site update on a separate request:

Optionally, Set the Template of the Page on All Sites of a Multisite

After the page has been created, one might want to actually set a template for that page across all the sites. Here’s how we do it. The code is adapted from the WordPress wp-admin back-end page editor. The same snippet sets the page as a blog page on all sites:

Full Plugin Code

You can download the source code of the working plugin from here.

Enjoy 🙂

At WPRiders, we know your website isn’t just a project—it’s part of your business engine ⚙️. That’s why we offer more than just code. From thoughtful WordPress custom development to dependable monthly WordPress maintenance, we’re here to support what matters most. Whether you’re planning a new build with custom WordPress website development 🛠️, looking for a reliable WordPress consultant 🧠, need and Elementor developer,or need ongoing support through our WordPress development service, we’d love to explore how we can work together.

If that sounds like what you need, 👉 Schedule a Free Discovery Call and let’s talk about your next move. We’re always up for a good conversation.

Navigate to

You Might Also Enjoy These Digital Marketing Articles:

Test If Flexslider Loaded
Test If Flexslider Loaded
Recently I had a mini project for a client and I had to test if Flexslider has been shown on the screen in order to further modify it. Subscribing to the startcallback didn’t work because the slider was shown by the theme and not by my code. jQuery(document).ready(…) didn’t work either. The slider was there, […]
Replace Comment Notification Email With Mandrill Template
Replace Comment Notification Email With Mandrill Template
Have you ever needed to replace the default email that WordPress is sending whenever a new comment is added? Recently I did. Here’s how I did it: To get this going you have to: Let me know if it worked for you.
Filter Custom Posts by Author in WP-Admin - WPRiders Article
Filter Custom Posts by Author in WP-Admin
Need to filter your Custom Post Types in WordPress by Author in WPAdmin? Here’s a handy way to do it by adding a new drop down for filtering: And here’s how it looks like: