The Events Calendar: Events page as Home page [closed]

You should be able to use the code from this answer: https://wordpress.stackexchange.com/a/96068/10 $homepage = get_page_by_title( ‘Events’ ); if ( $homepage ) { update_option( ‘page_on_front’, $homepage->ID ); update_option( ‘show_on_front’, ‘page’ ); } Haven’t tested it with multisite, but my guess is that it should work as advertised.

How to have one installation at blog.example.com and multiple blogs in sub folders such as blog.example.com/userA?

What you are looking for is a WordPress network, aka WP Multi-Site. This is perfectly suited for what you have described. You will want to pay careful attention to the type of multi-site you setup: http://codex.wordpress.org/Before_You_Create_A_Network#Types_of_multisite_network Generally, the choice is between subdomain or subfolder for the type but you actually want subfolder, on your subdomain. … Read more

Trying to change active theme on all sites in Multisite

Use switch_theme( ‘theme_name’ ) to switch a theme Use wp_get_sites( array(‘network_id’ => $wpdb->siteid) ) to retrieve all sites info including the blog_id Loop through the retrieved blog ids and execute code within the scope of each blog using the switch_to_blog() function: foreach( $blog_ids as $blog_id ){ switch_to_blog( $blog_id ); //Do stuff restore_current_blog(); }

All Network sites display as main blog

After diving deep into wordpress core files I found out that somewhere along the lines of getting the blog details was a caching function. It was this line in the ms-blogs.php file. $details = wp_cache_get( $blog_id . $all, ‘blog-details’ ); It turns out that I had a cached version of the blog details which messed … Read more