Running multiple sites with one installation and one central management. Also known as network and WPMU.

learn more… | top users | synonyms (4)

20
votes
2answers
20k views

How To Add Custom Form Fields To The User Profile Page?

The user profile page has the following fields: Username First Name Last Name Nickname Display name Contact Info E-mail Website AIM Yahoo IM Jabber / Google Talk How can more fields be added to ...
16
votes
4answers
8k views

WordPress Multisite - global categories

Setting up a WP multisite instance - the client has an existing ontology / set of categories that they want to classify all content across the set of blogs. Also the desire is that any new categories ...
14
votes
2answers
4k views

restore_current_blog() vs switch_to_blog()

After every instance of switch_to_blog() you should call restore_current_blog() to restore the current (actually, previous) blog. But if you're looping through two or more blogs and calling ...
0
votes
2answers
1k views

How to Structure Wordpress for an Organization and its Departments?

I want to make a wordpress site for an organization (main) that has many departments. The requirements are There is only one website ( or maybe same theme for the main site and its department site) ...
14
votes
2answers
21k views

How do I create a custom role capability?

I wish to create a custom capability for accessing the interface of my plugin. Should the plugin manage adding this capability to all the administrator accounts on activation? If so: Does WordPress ...
13
votes
3answers
4k views

How to add Custom Blog Options to new blog setup form?

Seems like a simple enough requirement, but I'm struggling: I want to add an option field to the "Add New Site". A simple text option is fine. How do I do this? I need to save this custom blog ...
8
votes
1answer
14k views

Get posts from sites in Multisite?

I'm trying to pull multiple sites posts. For example, I can pull out a single site posts by a category and total posts 10. But I'm trying to pull out both posts from two separate Multisite blogs 1 &...
9
votes
1answer
6k views

How to use same email for multiple users

I have a very big multisite. And I got a request to enable option that multiple users can use the same email. I found a plugin "Allow Multiple Accounts" which doesn't work properly. I should figure ...
5
votes
3answers
5k views

How to list all network sites on one page

Can I list all the blogs in my network on one page?
3
votes
3answers
9k views

Can i merge 2 new WP_Query($variable) 's?

I am running a multisite network and i have setup a sql query that uses swith_to_blog(); and queries the posts. Is there a way that i can declare the query inside a new WP_Query and actually merge ...
8
votes
7answers
3k views

What are options are there to implement a multi language site

What is the best way to have multiple languages on a site? I was thinking of using WP3.0 and then having each language of the site being a seperate blog in a sub directory. I.E. example.com ...
7
votes
1answer
3k views

What is the correct way to map multiple domains in a WordPress 4.1 multisite install?

I'm aware of this question and others but have not found a definitive answer to how a domain should be set up with multisite so that www and non-www variants behave correctly. I believe I have ...
3
votes
1answer
781 views

Templates for Custom Post Types and Custom Taxonomies

I am working on a custom theme for a network of sites that are deployed under a WordPress MultiSite installation. Within these theme I create 4 custom post types that have two taxonomies added to all ...
5
votes
1answer
890 views

How to set up wordpress domain mapping on MAMP Pro

I am trying to set up a wordpress multisite with MAMP Pro that will allow me to have two different domains (one domain for each language): dev.domainenglish.com dev.domainfrench.com I have already ...
2
votes
1answer
2k views

Infinite loop problem with the WordPress MU Domain Mapping plug-in

When I'm logged out, everything works fine. When I'm logged in, I'm unable to visit the front-end of my site. My main page is actually located in a sub-folder of my multisite installation: http://...
4
votes
2answers
4k views

Remove the blog slug from Wordpress Multisite root node

I have been looking at whether it is possible to remove the blog from the post & caetegory URL's in a multisite setup on the root node. I have found the Multisite sites settings and removed the ...
0
votes
1answer
692 views

Filters 'request' and 'parse_query' not firing in sites.php nor link-manager.php

I'm trying to make sortable columns in Sites and Links listings admin pages. /wp-admin/network/sites.php and /wp-admin/link-manager.php The problem is the following filters are not firing up in ...
7
votes
1answer
8k views

How to set permalink structure via functions.php

I'm setting up a Wordpress Network and wanted all new sites to have the same permalink structure (i.e. "/%year%/%monthnum%/%postname%/"). I'm wondering if this is possible to do via hooks or hacks in ...
7
votes
1answer
5k views

Multisite on Windows with wildcard subdomains

I want to create a local network on a Windows machine using subdomains. I do not want to edit the hosts file for each new subdomain. But Windows does not support wildcard subdomains, and the Codex ...
7
votes
4answers
3k views

wordpress multisite, how to keep user on subdomain throughout registration process?

I am running wp subdomain multisite in combination with domain mapping. This means I can create a new subdomain site xyz.site.com and map the domain name 'xyz.com' to that site. The problem I have is ...
6
votes
3answers
7k views

DB connection error after copying a WordPress Multisite instance to a second location

Here's my setup. I have a Multisite instance running at http://example.com, and I want to do development and staging. Moving an existing Multisite instance of WP onto localhost is a nightmare, so I'm ...
2
votes
2answers
5k views

How to disable Multisite sign-up page?

If we try to access a non-existant Multisite site, e.g., http://site1.example.com or http://example.com/site1/, we are redirected to http://example.com/wp-signup.php?new=site1. How to block this and ...
7
votes
4answers
7k views

Why are my roles not visible in a Multi-site/Network?

My network is showing roles in some sites and not in others. For some reason that I can't explain, when I add a new user, I have no role to choose from on the drop down box of a sub-site in my ...
4
votes
1answer
1k views

How to use alias domain for multisite installation?

Is it possible to use alias-domain for multisite installation? I have tried domain-mapping plugin and Multi Domains plugin for WordPress, but this does not solve this problem. Example: I have ...
4
votes
1answer
1k views

Restrict Admin Capabilities in MultiSite

update_core update_plugins update_themes install_plugins install_themes delete_themes edit_plugins edit_themes Hi, I want to restrict those capabilities to user_id = 1 so ...
3
votes
1answer
2k views

WP Multisite: Adding pages on blog creation by default

I’d like to have a page added by default when a new site is created with WP Multisite. So I have my function that creates two pages: function my_default_pages() { $default_pages = array('Impress'...
2
votes
2answers
4k views

Error 101 after upgrading Wordpress

We have just updated to WordPress 3.1.3 by following the WP manual install tutorial. Note: This is a Network-enabled (multi-site) install. After uploading the new files, we now get the following ...
2
votes
1answer
1k views

Aggregate Summaries of Posts of Different Blogs in Multisite Instance

I have a Multisite Wordpress installation with 7 different blogs. I want to show an aggregate of the summaries of posts from those 7 blogs in the main blog. Do you know a good way to do this?
1
vote
1answer
541 views

BuddyPress on Multisite [closed]

Does having BuddyPress installed on a Multisite setup mean that users in each of the different sites can interact or view the actions or content of users on other sites in the network?
11
votes
3answers
4k views

How to add field for new site-wide option on Network Settings screen?

I'm working on a plugin, and part of it involves setting an option value that applies to all sites in a WordPress network. I know about the add_site_option and get_site_option functions that let you ...
4
votes
2answers
368 views

How can I display all Multisite blogs where this user is administrator?

Given the user ID, how can I display all the blogs where this user is administrator? I tried: <?php $user_id = 2; $user_blogs = get_blogs_of_user( $user_id ); echo '<ul>'; foreach ($...
4
votes
1answer
374 views

Inherit plugin settings to new site in Multisite

I use the Breadcrumb NavXT plugin for a WP Multisite. I activated the plugin for all sites so I can use it throughout my network. My problem is that every time I add a new site I have to change the ...
4
votes
1answer
560 views

Outputting Canonical Resource URLs Across a Multisite Network?

Say a theme "foo" is used on across a network of sites. In each site, all the theme resources (.css, .js, etc.) will have distinct URLs: http://network/siteA/wp-content/themes/foo/style.css http://...
3
votes
1answer
1k views

“Upgrade Network” error: stuck with SSL certificate verification

When trying to update one Network/MU install, I got the following error. Warning! Problem updating https://subdomain-A.example.com. Your server may not be able to connect to sites running on it. ...
2
votes
2answers
762 views

Add site options UI in Multisite Sites > Infos page

I want to add meta fields for the sites in my network (such as a thumbnail and a category). I know how to do this using get/add/update_site_option, but I'm wondering where I could put the UI to manage ...
1
vote
2answers
672 views

Protect Uploads in Multisite

I am using WordPress multisite (3.3.1) and am trying to protect uploads from certain blogs from being hotlinked and directly accessed. This is loosely related to How to Protect Uploads, if User is not ...
3
votes
2answers
745 views

How to Check If A Plugin Is Enabled Through API?

How to find out if a particular plugin is enabled in a sub-blog in a multisite blog?
1
vote
1answer
453 views

Allowing logged in users to comment without moderation across a multisite installation

I currently do web admin for an internet community based on BuddyPress and Multi Site, and use the Comment author must have a previously approved comment setting to make it easier for users to comment ...
1
vote
1answer
140 views

subdomain archiving

I've been trying to figure out if this can be done through Multisite, but I'm pretty new to this concept so please forgive any ignorance. I'm looking for a way in which my client can easily archive a ...
0
votes
1answer
161 views

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 example.com (...
0
votes
2answers
2k views

List all sites in multisite

I want to list all sites in the multi site network in alphabetical order? Right now, the code lists by registered date <?php // Query for getting blogs $blogs = $wpdb->get_results( $...
11
votes
5answers
7k views

Convert a Multisite Wordpress install into a Single site

Given a wordpress multisite network, with a main blog, and assuming all content has been moved on to that blog, how would one collapse the network back down into a standard wordpress non-network non-...
6
votes
1answer
280 views

How do I transition multiple installations to a single Multisite installation?

I have a client who runs 8 different blogs, currently on 8 separate installations of WordPress. I'm trying to encourage them to move to a single MS installation instead to make it easier (mostly on ...
5
votes
1answer
886 views

Programmatically create blogs with dummy content on a WPMU site

I'm trying to set up a WPMU test environment with 5-6K blogs, lots of posts comments, users etc. Browsing trough the WP's functions, I picked up wp_insert_post, wp_insert_comment, create_empty_blog(),...
13
votes
3answers
11k views

Moving a WP Multisite to a subdirectory

Firstly, I've read a number of posts on this process. However, for various reasons, the process remains difficult to implement or troubleshoot for lack of even abstracted examples, or maybe too ...
6
votes
2answers
4k views

Convert existing site to network

We have an existing WP3 site and would like to make it multiuser instead of the multiple installs we have now. I add the WP_ALLOW_MULTISITE code and relaunch - start the Network and then add the ...
5
votes
3answers
3k views

Changing Plugin Load Order

I'm writing a plugin, bar, which is dependent on another plugin, foo, being activated, and I need the functions from foo to be available when bar loads. Normally plugins are loaded in alphabetical ...
2
votes
2answers
2k views

Ideal WP multisite server setup for up to 1000 sites?

I plan to host up to 1000 sites for a large non-profit. Each site could get quite a bit of traffic. What is the ideal setup? VPS, *ngix, mem-cache etc?
15
votes
1answer
757 views

How to reliably flush rewrite rules on multisite?

Let's say you have a plugin which need to flush rewrite rules. You do it all properly with activation hook and adding flush late, so everything is smooth and compatible. And then one fine day someone ...
6
votes
3answers
4k views

WordPress sharding: which multi-DB plugin to use?

I've got a WordPress multisite installation that's hosting enough blogs I need to shard the database. I see there are three plugins available to spread WordPress across multiple databases: http://...