how to list all subdomain in wordpress multiuser

take a look at this plugin : Multi-Site Site List Shortcode or if you prefer a snippet then: $blog_list = get_blog_list( 0, ‘all’ ); if (count($blog_list) > 1){ echo ‘<ul>’; foreach ($blog_list AS $blog) { echo ‘<li>Blog ‘.$blog[‘blog_id’].’: ‘.$blog[‘domain’].$blog[‘path’].'</li>’; } echo ‘</ul>’ }

Set a default page template to load for multi-site

I dont think there is anything like page_template=> but you can just specify the template like this: update_post_meta($id, “_wp_page_template”, “new_template.php”); http://codex.wordpress.org/Function_Reference/update_post_meta or using your code above: $wpdb->insert( $wpdb->postmeta, array( ‘post_id’ => 2, ‘meta_key’ => ‘_wp_page_template’, ‘meta_value’ => ‘new_template.php’ ) );

Solving a get_user_meta() problem in Multisite

The problem is that the idea of “the user of a specific subdirectory” doesn’t really exist natively in WP. There are sites (“subdirectories”), and there are users, and users can be associated with sites (through Roles and Capabilities), but there is no guarantee of a one-to-one correspondence. If you are running a network where users … Read more

Create “/blog” sub-site on WP multisite network

“blog” is a reserved name within the WordPress system, so you really can’t be using it as you are trying to do. A better solution would be to name the site something else that is a legal wordpress site name, and then use .htaccess to redirect the old links to the new ones.