Questions tagged [multisite]

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

Filter by
Sorted by
Tagged with
30
votes
2answers
31k 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 ...
28
votes
3answers
47k 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 ...
27
votes
3answers
40k views

How to use Wordpress Multisite With Different Domain Names?

I want to work with WordPress multisite, but I want to be able to use my own names. For example my main site is called example.com. If I want to add a new site to my multisite network it's gonna be ...
25
votes
3answers
9k 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 ...
25
votes
4answers
6k views

'Global' settings page for multisite plugin

I'm working on a plugin that will be installed in a multisite instance. How do I create a single settings page that is visible at the "Network admin" level only - most of the guides i've seen relate ...
23
votes
8answers
20k views

How to disable a network enabled plugin for just one site?

I'm in the process of setting up a (potentially) large multisite network, and I'm looking to make it as easy as possible now to add and configure sites when needed. I'm currently at the phase where I'...
23
votes
5answers
8k views

Running WP Cron on multisite the right way

I have WordPress Multisite with several sites. I set up DISABLE_WP_CRON to true in my wp-config.php. If we set up cron task with wget or curl we have 30 sec rule to execute PHP script. It's so small ...
22
votes
4answers
30k 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 ...
22
votes
4answers
11k 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 ...
22
votes
1answer
2k 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 ...
21
votes
5answers
23k 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 ...
19
votes
2answers
32k 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 &...
19
votes
2answers
2k views

WordPress MultiSite Active Directory integration and site privacy

Here's the overview of the setup: I have a multisite installation of WordPress 3.4.2. I've installed the Active Directory Authentication Integration plugin to allow users to use their AD credentials....
18
votes
5answers
38k views

Site Redirecting to wp-signup.php

I migrated content from our production server to our dev server in an attempt to sync all environments. I used the All-In-One WP Migration plugin. Now, when I access dev.domain.com I am forwarded to ...
18
votes
5answers
12k 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-...
18
votes
2answers
1k views

How can I trust switch_to_blog()?

When I call switch_to_blog() with a blog id, I don’t know whether that blog actually exists. The function returns always TRUE. Test case: switch_to_blog( PHP_INT_MAX ); $post = get_post( 1 ); ...
17
votes
2answers
43k views

Where are available Roles Defined in the wp_ database?

I got on the list to test a private beta of a plugin I'm using on a multisite network. The plugin authors have code in there to add a custom role. They have a bug that removes the ability to give a ...
17
votes
13answers
21k views

Cookies in multisite where network sites have their own domain name

I decided to integrate several stand alone Wordpress websites into a single multisite installation. I created a brand new multisite install with subdirectories, created a MU network site with ...
17
votes
2answers
5k views

WordPress Job Interview Preparation

I'm interviewing for a job as a WordPress Developer. I've only been working with WP for a year now and feel I have a good overview, as in how to set it up, what functions.php does, where to modify ...
17
votes
6answers
21k views

Remove the blog slug from Wordpress Multisite root node

I have been looking at whether it is possible to remove blog/ from the post & category URLs on the root node in a multisite setup. I have found the multisite sites settings and removed the blog/ ...
17
votes
3answers
6k 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 ...
16
votes
6answers
13k 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 roles to choose from in the drop down box of a sub-site in my ...
16
votes
5answers
8k views

Site admin in a network install can't edit users?

For the Stack Exchange Community Blogs, we have a network install that we've set up. I am being told that the site administrator role is not allowing an option for user editing. On the site's users ...
16
votes
3answers
7k 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 ...
15
votes
2answers
14k 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 ...
14
votes
2answers
2k views

Specific upload folder for PDFs in custom Post type in WP multisite

I need to filter uploads to a specific folder for a custom-post type called "document" only for PDFs. So far, I have: function custom_upload_directory( $args ) { $base_directory = '/home/xxx/...
13
votes
4answers
22k views

How to do I get a list of active plugins on my wordpress blog programmatically?

I have 2 blogs, one which is multisite and one which isn't. I want to get a list of plugins active on both the blogs so I can compare them. On the multisite blog, I want to list the plugins which are ...
13
votes
1answer
3k views

How to run an activation function when plugin is network activated on multisite?

I'm trying to make my plugin multisite compatible. I'm using the register_activation_hook() function to register my my_activate() function to run when the plugin is activated. This works well on a ...
13
votes
1answer
15k 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 ...
13
votes
2answers
4k views

How to migrate subsite from dev multisite to production multisite

I'm looking for the best and most secure way to develop locally a numbers of subsite using multisite and moving them to the production environment when they are ready. I've already migrated the full ...
11
votes
3answers
21k 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 ...
11
votes
4answers
7k views

Redirect Main Site to Subsite in Multisite Wordpress

I have multi-site wordpress, I want to redirect the main site to one of the sub-site but redirection in .htacecss gives error. Is there any way to redirect a main site to its sub-site. That looks not ...
11
votes
2answers
9k views

Where can I find documentation on what characters are allowed in user names and why?

I would love to be able to use spaces in usernames, but this does not seem possible. Is there a writeup in the codex or somewhere that explains what characters are allowed and why it was restricted to ...
11
votes
2answers
3k views

Can we use one WordPress installation for multiple databases, domains and content directories

I have seen some questions which look similar, but they all ended up with multisite. For maintainability, performance and security, I don't want to use multisite. So please bear with me. This is what ...
11
votes
1answer
3k views

Is there a is_user_logged_in() for multisite?

Is there a is_user_logged_in() function for Wordpress MU / Multisite (3.0+) where I can add in the network site ID like is_user_logged_in(2) where 2 would be the site_id? Update: After a little ...
11
votes
4answers
3k views

Allow user to select a theme to install when they signup

Is it possible to allow a user to select which theme they would like installed from the new site signup page? And once the site is created, it obviously installs whichever theme they chose. I found ...
11
votes
2answers
14k views

Switching MultiSite installation from HTTP to HTTPS

I installed MultiSite with the URL set as http://example.com, but now I want to force all requests to go over HTTPS, so I'm trying to change the URL to be https://example.com. I've gone through the ...
11
votes
2answers
2k views

Setting up a wordpress network with third level domains

I've been looking into setting up a WordPress network install. Everything has been going pretty smoothly until I get to the point where my desired domain layout doesn't fit well. I would like to ...
11
votes
2answers
2k views

Get upload URL by blog ID in multisite

The essence of the question is, I'm looking for a solution like this: $blog_upload_dir_info = wp_upload_dir( $date, $blog_ID ); $blog_upload_url = $blog_upload_dir_info[ 'baseurl' ]; Where $blog_ID ...
10
votes
2answers
7k views

How can I un-reserve a pending username registration?

I am setting up a new WordPress Multisite instance, and am still working out some kinks in the stack. Most significantly at the moment, user registration emails are not being delivered for some reason....
10
votes
3answers
5k views

What's the difference between get_site_option and get_blog_option?

I'm trying to understand the difference between get_site_option() and get_blog_option(). Are blog and site two different things? Apologies if this question seems basic, but when referring to a ...
10
votes
3answers
16k 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 ...
10
votes
6answers
3k views

How to delete post revisions?

I haven't set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions? By the way, I am using WPMU and have many blogs, so how to ...
10
votes
2answers
2k views

How to tell if a plugin is multisite compatible?

As a WordPress admin newbie, I just went through my first non-automatic WordPress upgrade. I upgraded five different WordPress installs from 4.1.3 to 4.2. They all refer to different web sites ...
10
votes
4answers
12k views

Create mobile site with same content just different theme

I have a wordpress site and want to create a different theme for mobile. I'd like to create a subdomain such as m.domain.com which will use a mobile optimized theme much different than the desktop ...
10
votes
3answers
2k views

Add additional Network constants to wp-config.php dynamically

When starting with a fresh Network install, the first step is a single site install that has one additional line in the wp-config.php file: define( 'WP_ALLOW_MULTISITE', true ); After that we have ...
9
votes
1answer
16k views

Multisite stuck at 1MB for max file size

I have a Wordpress Multisite install on our FreeBSD development server. It seems to be stuck at 1MB. I have the following settings in php.ini upload_max_filesize = 100M post_max_size = 100M ...
9
votes
7answers
4k 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 ...
9
votes
1answer
16k views

How to get blog name, when using Wordpress Multisite

I have a wordpress multisite installtion with 5 sites within, the multisite is called Lifestyle Homes Cars Architecture Holidays Communities I am trying to get the blog name, for each blog when ...
9
votes
4answers
2k views

Prevent network activation of plugin

I have a plugin that currently doesn't support network activation. The best fix for this of course is to fix it :) which I plan to do. However I wonder if there is a temporary solution I can use to ...

1
2 3 4 5
59