Articles of multisite

How to query WP Multisite primary site link

Currently I have created a multisite for my client. Within the network, there are a (primary)corporate site, a newsbites site and a blog site. Is there a way to query the primary site link, so that newsbites and blog site can connect back to the (primary) corporate site, without hard coding the site url?

WordPress empty Nav Menu error

i have created Multisite. i have assigned menu for the first sub domain while for the second sub domain i have not assigned Menu. i just enabled the Debug mode and got Following error: Notice: Trying to get property of non-object in /home3/public_html/project/myproject/wp-includes/nav-menu-template.php on line 154 i gone through couple of article and they suggested […]

Querying Posts by Taxonomy From Alternate Network Site

I have 5 Network sites in my WordPress multisite setup. One of which is the “primary website”, which the rest of the other network sites will be retrieving data from. I am currently using WP_Query(); to retrieve posts and switch_to_blog() / restore_current_blog(); before and after the call to WP_Query(); if the current site is not […]

Possible to create a multisite network where the main site is non-WP? <- large non-WP site I would like to add multiple blogs to the site, with different URL requirements, and manage them all within one Multisite install. However, the original site will remain unchanged, and will not be a part of the WordPress site. Intended architecture: <- stays as a large non-WP site […]

Adding an existing subfolder site to a fresh multisite in the root, would it cause a problem?

I have a 5 years old subfolder site and I have nothing in the root site Now I want to setup a multisite in the root site to create a network, then I want to add the existing subfolder site to the network, would it be a problem? Do I have to […]

echo same menu items across multi-site platform

I am trying to echo main theme’s menu items across the headers of other sites in a WP multi-site environment and was wondering what is the proper way of doing this. I tried iframe which works but there is a delay in displaying the header. So, the body gets loaded and couple of seconds later […]

Display site administrator's id by current blog id inside link

I need to add current subsite admin id on the end of the ref link. For example site admin id is 4 – the link displayed on should look like The working code (thx to @birgire): <?php function reflink_func( $atts ){ $uids = get_users( array( ‘blog_id’ => get_current_blog_id(), ‘role’ => ‘administrator’, ‘fields’ […]

Multisite new sites not found(404), main site still works

I followed wordpress guide to install multisite. My main site ( works well, my multisite is based on subdirectory i.e., (, however it doesn’t load at all (404 error). more details $ cat .htaccess RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} […]

Password protect a single site on network

Id like to restrict access to a single (subdomain) subsite, so that it requires a plugin to view the site… without affecting any of the other subsites. So for example if I have 3 subsites like this… How can I hide and password protect just the Can anyone help me? I’m […]

Multisite – One user allowed access to all sites?

I am creating a multisite environment where each site is a classroom blog in the same school. Is it possible to create one parent user with access to all sites? That way parents don’t have to keep logging in if they have students in different classrooms. If that is possible, the next question is, can […]