Add a custom word to the base of a multisite url

So, I’ve managed to achieve a version of this by setting the “home” value in Network admin > Sites > Edit > Settings to: http://example.com/custom-word/multisite-name In my case the custom word is the unique identifier for the multisite, so I had to swap the positions of the word and the name.

Main site single-property.php design, as homepage of a multisite

You have two options; either bake into the theme (functions.php) or write a simple plugin that auto-creates the post based on hooking into after new site (blog) creation: https://codex.wordpress.org/Plugin_API/Action_Reference/wpmu_new_blog Use the insert post function to do the creation: https://developer.wordpress.org/reference/functions/wp_insert_post/ Then, set as the home page based on ID returned: update_option( ‘page_on_front’, $new_page->ID );

Can I use WP Multi-site on a sub-domain with a different theme but use all the original site’s posts/pages?

Here’s an example of a solution I configured, which leaves the site in the network, but establishes a domain map from any registered domain, to the network. It makes the network site appear to be a completely independent site, with all the functionality (log-in, etc.) intact. Goal: Map client’s registered domain, both www.foosite.com and foosite.com … Read more

How to enable Admins to see Plugins

Have a look at the Network Admin Settings screen (in my installation, it’s at example.com/wp-admin/network/settings.php). Tucked away down near the bottom is this: Menu Settings Enable administration menus [] Plugins Checking that box should allow your users to see the Plugins menu in their sites’ back end. (I don’t think it’ll allow them to install … Read more

Same header/footer in Admin, across all network sites in multisite

Here’s what I did: Inserted ob_start() and ob_get_clean(), at strategic places in header.php and footer.php within a child theme derived from my base site’s main theme. <some header stuff> ob_start() <header html I want to reuse across network> <?php $html = ob_get_clean(); echo $html; harvest_html($html, ‘header’); ?> The function harvest_html simply takes the string and … Read more