Max number of multisites

Well, WordPress.com is a single installation of WordPress multisite (one extremely well optimized, cached, and load balanced installation, but still just one). I just checked, and they run over 19 million blogs there, with better performance than any site I’ve ever built. Obviously, your server(s) and environments will need to grow with your site. I … Read more

WordPress Network for regional company websites

I am not entirely sure that it would work with sub-sub-domains. 🙂 Most of your requirements (IIS aside) seem very manageable: consistent design would be easy to achieve with shared theme (or several child themes if required); users can be easily assigned to multiple sites, using single login and account (through editing site in Network … Read more

How can I get multisite primary blog (url or path) for current user?

Indeed, get_active_blog_for_user should work. $blog = get_active_blog_for_user( get_current_user_id() ); $blog_url = $blog->domain… /* or $blog->path, together with $blog->siteurl */ Alternatively: $blog_id = get_active_blog_for_user( get_current_user_id() )->blog_id; // note: changed “->userblog_id” to “->blog_id” in row above to make it work. switch_to_blog( $blog_id ); /* switch context */ $home_url = home_url(); restore_current_blog(); /* back */

Exclude main blog from get_blogs_of_user

If you drop this line in your code, you will see all the properties of $user_blogs. echo ‘<pre>’.print_r($user_blogs,true).'</pre>’; One of them is userblog_id, so you just have to check against it before echoing the blogname. <?php $user_blogs = get_blogs_of_user( $user_id ); if (!$user_blogs) { echo ‘no blogs’; } else { echo ‘<div><ul>’; foreach ( $user_blogs … Read more

How to get the site administrator/s by blog id

In shortcode form: /** * Shortcode for listing all admin users of a Multisite site * * Usage: [siteadmins blog=”1″] */ add_shortcode(‘siteadmins’, ‘wpse_55991_site_admins’); function wpse_55991_site_admins($atts, $content = null) { $site_admins=””; switch_to_blog( $atts[‘blog’] ); $users_query = new WP_User_Query( array( ‘role’ => ‘administrator’, ‘orderby’ => ‘display_name’ ) ); $results = $users_query->get_results(); foreach($results as $user) { $site_admins .= … Read more

Recover from failed multisite conversion

If you still have access to your wife’s blog, I would recommend: Running a regular WordPress export of the content Downloading the entire /wp-content directory over FTP These are the two most important parts of the site – the content and the uploads. From this, you should be able to recreate the site on a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)