Delete all blogs on multisite

I was able to get a work around in place. Since I was deleting all blogs with no user interaction. I created two mysql queries and ran them. The first was to drop all tables associated with the given $blog_id the second was to remove that row from the wp_blogs table. $blogs = wp_get_sites( array(‘limit’ … Read more

WordPress Multisite with thousands of blog

The number of tables is not an issue by itself. Actually separating the tables for each blog make each operation related to a specific blog more performant. Your scaling problem will come more likely from the big monolithic users tables. Scaling issues will come from the amount of requests your DB will have to handle, … Read more

MU domain mapping without using a plugin

To be honest even after your Update: How may I fix the fact that the admin area preserves the original url when using the Domain Mapping plugin (the one with the sunrise.php)? I don’t quite understand whether you want to “Redirect administration pages to network’s original domain” or not. In any case, as per the … Read more

Get the latest 3 posts across the network

The link provided by Christine Cooper has a great answer. There are many ways, and you can look through the plugin WP Latest Posts for code, too. Start by looking at the get_last_updated function. WordPress provides get_posts as the basis to retrieve posts, even across a network. In addition, take a look at switch_to_blog() to … Read more

Use a single WP installation instead of three

If I understand correctly you have main web site which is not WordPress, but you want to implement WordPress Blog inside it, and create premalinks/categories as you described. If I were handling this requirement, I would go about it by installing separated WP instance on subdomain, such as blog.example.com , and then create categories like … Read more