Switch a single site to a multi-site
Have you checked out Create A Network on the codex? Essentially: Add define( ‘WP_ALLOW_MULTISITE’, true ); to your wp-config.php Access Tools > Network Setup from the admin menu & follow the instructions.
Have you checked out Create A Network on the codex? Essentially: Add define( ‘WP_ALLOW_MULTISITE’, true ); to your wp-config.php Access Tools > Network Setup from the admin menu & follow the instructions.
I solved this without using a Domain Mapping plugin. Most of these features assume that you’re running your WordPress blog farm on the same website. To solve this I employed two solutions using IIS’s Application Request Routing module to reverse proxy /blog on each site to the matching WordPress site. I then rewrote the outbound … Read more
If the real question is: can you manage multiple domain names from a single WordPress multisite network, then the answer is yes. But you’ve over-specified your restrictions such that the question is no longer answerable. A WordPress multisite network – either as a subdomain (site1.example.com) or subdirectory (example.com/site1) install will allow you to manage core, … Read more
I see a few things that you might try to shortcut things: Currently a Multisite network only allows one site ID, according to the Codex page for $wpdb->siteid. Also, the site ID is defined in your wp-config.php file as a constant, BLOG_ID_CURRENT_SITE. So any reference to $wpdb->siteid can be replaced by BLOG_ID_CURRENT_SITE. Look into the … Read more
Okay I avoided the lazy way out =) For others that have my particular site requirements, here’s my workaround, of simply creating my own custom method in functions.php: function mysite_get_theme_directory_uri() { // chop up the url from get_stylesheet directory $parsedUrl = parse_url(get_stylesheet_directory_uri()); // chop up the ‘path’ index value $path = $parsedUrl[‘path’]; // make it … Read more
Well, the answer has several different ways.. ==Method 1== (when you want your website permalinks to become like example.com/wp/smth ) if so, just change this: RewriteBase / to RewriteBase /wp and in database, change all occurrences of example.com/ to example.com/wp/ ==Method 2== (when you want your website permalinks to remain example.com/smth ) Now you have … Read more
I ended up creating one myself. I’m not sure if the new wordpress rest API contains functionality that duplicates this so you may want to investigate that first. https://github.com/remkade/multisite-json-api
I think I found it, <?php add_user_to_blog( $blog_id, $user_id, $role ) ?> http://codex.wordpress.org/Function_Reference/add_user_to_blog
Yes, you can import content from other single site installations into one multisite installation (network). Widgets, themes and plugins are set per site in a network. What you cannot do is using multiple versions of the same theme or plugin, eg. version 1.2 on one site and 1.3 on another. Before you do that, set … Read more
I thought I’d let you know how I resolved this. After some discussion with a colleague, he made the point that adding a trailing year to the url, doesn’t affect the page displayed (I haven’t had time to find out the rationale for this yet) so: /category/subcat/2011/ displays the same page as /category/subcat/ This meant … Read more