Setup 3 Sites To Connect To 1 Database and Share Data

To elaborate on my suggestion, here is some working code: // hook in before theme is loaded add_action(‘plugins_loaded’,’custom_maybe_switch_themes’); function custom_maybe_switch_themes() { if (!is_user_logged_in()) {return;} if (!current_user_can(‘manage_options’)) {return;} // check for query request eg. ?usertheme=theme-slug if (isset($_REQUEST[‘usertheme’])) { // sanitize request $usertheme = strtolower(sanitize_title($_REQUEST[‘usertheme’])); global $current_user; $current_user = wp_get_current_user(); // maybe reset user meta stylesheet if … Read more

WordPress Multisite blogs not working after domain swap

Have you copied and modified the specified lines from your wp-config.php from old site to the new site? The code should look something like this define( ‘MULTISITE’, true ); define( ‘SUBDOMAIN_INSTALL’, true ); $base=”https://wordpress.stackexchange.com/”; define( ‘DOMAIN_CURRENT_SITE’, ‘yourdomain.com’ ); define( ‘PATH_CURRENT_SITE’, “https://wordpress.stackexchange.com/” ); define( ‘SITE_ID_CURRENT_SITE’, 1 ); define( ‘BLOG_ID_CURRENT_SITE’, 1 );