WordPress Multisite subdirectories not allowed on new install?
You don’t need to do anything just past this code in your activated theme’s functions.php add_filter( ‘allow_subdirectory_install’, ‘__return_true’ );
You don’t need to do anything just past this code in your activated theme’s functions.php add_filter( ‘allow_subdirectory_install’, ‘__return_true’ );
This is because you’re only a member of 3 sites. As a super admin you have the ability to view the full site list via the network admin, but that doesn’t mean you’re a part of every site. The admin bar menu only lists the sites you’re a member of, not the full list, that’s … Read more
Let’s establish the baseline: it is possible to have the main site in example-domain-x.com and all subsites subdomains in example-domain-y.com. You just add subdomain1.example-domain-y.com (or subdomain2.example-domain-y.com, subdomain3.example-domain-y.com) like you would be adding a bare or www domain in the domain mapping panel ( URL containing wp-admin/network/settings.php?page=dm_domains_admin ). To achieve the same programmatically, you could hook … Read more
Use this plugin http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/ and this tutorial http://wpmututorials.com/how-to/make-a-tags-page-like-wordpress-dot-com/ It says wpmu, but it is exactly the same.
Ok I have cracked it, by spoofing the $_SERVER variable and pre-defing some constants, I was able to prevent WordPress from redirecting after the inclusion of wp-load.php. define(‘WP_USE_THEMES’, false); define( ‘DOMAIN_CURRENT_SITE’, $siteRow[‘domain’] ); define( ‘PATH_CURRENT_SITE’, “https://wordpress.stackexchange.com/” ); define( ‘SITE_ID_CURRENT_SITE’, 1 ); define( ‘BLOG_ID_CURRENT_SITE’, $siteRow[‘wp_blog_id’] ); $_SERVER = array( “HTTP_HOST” => $siteRow[‘domain’], “SERVER_NAME” => $siteRow[‘domain’], “REQUEST_URI” … Read more
Default Transient API behavior is to use Options API for storage and so behavior identical to options. However if there is external object cache (declared by plugin or whatever) then they get stored using object cache functions instead. So basically it will work in scope of current site, unless there are plugins that make it … Read more
You want to use remove menu page. <?php add_action( ‘admin_menu’, ‘wpse26980_remove_tools’, 99 ); function wpse26980_remove_tools() { remove_menu_page( ‘tools.php’ ); } You can drop that in your functions.php file (without the opening <?php most likely). That’s not going to prevent people from typing in yoursite.com/wp-admin/tools.php and seeing the tools page, however.
I installed WordPress 3.2.1 fresh on a new domain, and then enabled Multi-Site, which functioned as documented. I could reach /wp-admin/network without problems. Comparing the database of this WP with the problem installation, in the wp_sitemeta table, admin_email was not set for the problem site. Also, wp_sitemeta > site_admins was different. The problem website had … Read more
Posts from one site are not stored in the same table as posts from another site. Each blog on a multi site gets an ID and that ID is used to generate a separate set of tables for each site in a multisite installation. So for example site 1 gets: wp_posts where as site 2 … Read more
A multi-site network only has one set of files: There is only one WordPress installation that is shared among the various sites. There is only one database shared among the various sites. The database and WordPress files don’t need to be on the same physical machine, but they need to have access to one another. … Read more