Articles of multisite

Multisite use language code as subdirectory

I installed WordPress in the subdiretory /de and activated multisite features. The main blog has the URL/path: Now I want to add a second site for the English language with the following url: But after I added the site, the subdirectory for the English site was set as: Any ideas how I […]

Reset WordPress website

I have a website to demo plugins, and I want to allow users to login, but I am not sure how to reset the website once they log out. Is there a way to create a separate instance of WordPress for each new user and then delete itself once that user logs out? Or is […]

delete_user_meta : how to delete all the metadata of a given user (witout SQL)

on a multisite I delete a user with: wpmu_delete_user($user_id); Fine, but unless I am confusing, it doesn’t delete the metadata which may exist for this user… delete_user_meta() seems to be the function to do this but I don’t see how to delete ALL the metadata, without entering the metakeys. (I wanted to avoid writing a […]

sunrise.php for multi-network install of domain mapping plugin

Currently using the WP-mu-domain-mapping plugin on a multi-network installation. The domain mapping works fine with the provided sunrise.php file, however it breaks (sites no longer map correctly) when I move the plugin to our mu-plugins directory. I’ve tried the following, but it doesn’t work. <?php $sunrises = array( “dm_sunrise” => dirname( __FILE__ ) . “/mu-plugins/domain-mapping/inc/sunrise.php” […]

wp_redirect not working on admin menu page

Im trying to create a admin menu link on the backend dashboard, that will take users to the front end of their site. Im trying to use this code, but for some reason the redirect is not working. // Custom Menus add_action(‘admin_menu’, ‘register_web_menu_page’); function register_web_menu_page() { add_menu_page(‘View My Website’, ‘View My Website’, ‘add_users’, ‘web_menu_page’, ‘web_menu_page’, […]

Redirect all users, except network administrators, from the main site to a subsite

I have a WP Multisite / Multi Network installation. What I need is to redirect all non-logged and also all logged in users, except logged in network administrators, from the main site (including all nested pages, posts, categories etc.) to the, that is a segregated multisite network. They share the same database. The […]

Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb

I’m working on a plugin for a system to use WordPress as the authentication backend, so that I can use my existing WordPress users in another application. The plugin works great when running in single website mode: include /path/to/wordpress/wp-config.php global $wpdb; // SQL and code to select user and compare entered passwords I need this […]

You do not have permission to edit this user

I am using wordpress mu. My blog administrators are unable to edit users – getting the message: You do not have permission to edit this user. I have checked my plugins etc and cannot find the cause. Is there a solution to this problem?

Forcing SSL Protocol for Multisite Subdomain Child Sites + cPanel Configuration

I’m running a WP multisite using subdomains. I would like to force SSL protocol for all requests and am running into an issue for non-SSL requests on my child sites. I’m using the WP Force SSL plugin. I’ve done a bit of digging around and tried the following .htaccess directive, but it doesn’t work (nor […]

Multi-site vs seperate installs for just 3 blogs?

I’m new to WordPress and in a few months will be attempting to set up three blogs. They most likely will be hosted on a Windows Server with IIS. (because the server is already there, and nobody else would know how to maintain Apache) The blogs will be unrelated and not share any common users. […]