Best Practise: Linking to WPMU sites from other sites
Short answer but… get_blogaddress_by_name or get_blogaddress_by_id look to me like what you need. Both return the full blog URL.
Short answer but… get_blogaddress_by_name or get_blogaddress_by_id look to me like what you need. Both return the full blog URL.
Each site in Multisite has its own search engine setting — in your site’s Admin pages, go to Settings > Reading, and check the Discourage search engines from indexing this site box. The URL should be along the lines of example.com/site-name/wp-admin/options-reading.php
If you open up your wp-config.php file for your multisite set-up there are some constants you can change… define(‘DOMAIN_CURRENT_SITE’, ‘example.com’); define(‘PATH_CURRENT_SITE’, “https://wordpress.stackexchange.com/”); define(‘SITE_ID_CURRENT_SITE’, 1); define(‘BLOG_ID_CURRENT_SITE’, 1); 1 in this case refers to the ID of the site that should be the default site. You can figure out the ID of each site by going to … Read more
I would start by answering all your questions and then conclude what i think . I am a webdesigner and I use wp multisites to showcase different sample sites. I do not allow user registrations Q: sign up process to be fully automated. Ans: Network admin > Settings > Network settings > Allow new registrations … Read more
Just set a different language for each site in wp-admin/options-general.php. WordPress will load the matching language file for theme if it exists. Be aware, you must have these languages installed to get the setting.
Use both: a specialized plugin and multisite. There are plugins doing that (I’m the developer for one, Multilingual Press, but there are others). The main advantage is indeed interoperability: you can activate language and theme specific other plugins per sub-site, you don’t get any data hidden in custom post types or post meta fields, and … Read more
You need to treat this just like you would when changing domains. The short version is: You need to change the WordPress Address and Site Address in Settings->General. You have to change both Or edit wp-config.php to alter the same values as in step #1. This one is easiest if you’ve already lost part of … Read more
By reading all that Ipstenu has published. Multisite 101 > Advanced Topics > Exporting a Site If you want to export one site from the network and install somewhere else, you will have to make a couple important decisions. If all you care about is the content, a traditional WordPress export will be just fine. … Read more
The WordPress object cache isn’t a persistent cache, it’s meant to cache data within a single page load, so “as long as possible” will never be longer than a single request. Use the Transients API if you want to store your data across multiple page loads, or even simpler, just store it in an option … Read more
Personally, I make them default to the HTTP host: define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); There are no caveats for single WP installs. It’s in fact very convenient when testing changes in a dev.example.com subdomain, in the sense that it allows to use the same database before rolling out a change on a … Read more