I’m creating a multisite network and I am looking for a way to have it so new blogs that are created have a couple of standard pages set up automatically.
The purpose of these pages will be to display universal membership options and other info that I want each site to display.
So, for example, I want each new site to have a “Join” page and an “About this Network” page, and I don’t want to have to manually set up the pages and their custom templates.
I’m using Twentyeleven as my child theme base and customizing a specific theme to be used by each of the newly created sub blogs users.
I guess a part of this question is: is it possible to hardcode pages into a WordPress theme?
Thanks very much.
JW
Hook into
wpmu_new_blog
and create your pages:You could put this inside a plugin that you network activate, or a must-use plugin, this way they are available in all themes.
Another way is to use
template_redirect
hook and include your own template files