get_current_site() not returning site name
Try using get_current_site_name() to insure you get the site name so something like this: echo get_current_site_name(get_current_site());
Try using get_current_site_name() to insure you get the site name so something like this: echo get_current_site_name(get_current_site());
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
Try Search and Replace plugin which is A simple search for find strings in your database and replace the string. You can search in ID, post-content, GUID, titel, excerpt, meta-data, comments, comment-author, comment-e-mail, comment-url, tags/categories and categories-description.
You should look in WordPress Codex page related to Nginx. It’s best manual for configuring nginx for wordpress I’ve seen over the internet.
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 */
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
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
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
You can’t use Members to do exactly what you want. I use WP eBooks’ “Network Roles” in tandem with Members to accomplish what you want: http://wpebooks.com/network-roles/
Multisite cannot be installed in a subdirectory of the document root currently. This will be possible in 3.5. See Multisite on Windows with wildcard subdomains for a guide how to manage subdomains automatically on Windows with XAMPP. You can move the plugin directory to another directory per wp-config.php. This is possible for themes too, but … Read more