Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Running multiple sites with one installation and one central management. Also known as network and WPMU.
5
votes
Accepted
Is there a way to define wp_blogs domains in wp-config?
When WordPress loads multisite, it includes the relevant MS specific files in wp-settings.php
The relevant lines:
<? … defined( 'MULTISITE' ) ) {
define( 'MULTISITE', false );
}
ms-settings.php serves a similar purpose as wp-settings.php: loads the multisite environment, and -- more importantly for our purposes - …
2
votes
Wordpress MU wp_posts table
wp_posts table will be for the "main" site -- the one from which the network was installed.
wp_*_posts will be for other sites in the network -- one set of tables per site.
Excerpts are only saved w …
2
votes
Using Multisite with a CDN?
Both of these should work fine with multisite, or you can roll your own -- you should! its fun! …
4
votes
Accepted
Theoretical Multi-Server WordPress Setup with Shared Users
Of course, this is just a WP multisite install without the convenience of multisite.
Multisite + a domain mapping plugin is probably what you want. …
2
votes
Wildcard subdomain for the same site
To me it sounds like this might be something better suited to a single site install vs. multi site. But it really depends on how customized things need to be for a single user.
NOTE: this answer wil …
3
votes
Accepted
Merging multiple wp_query objects
If you just need the posts of each WP_Query object, you can do do something like this:
<?php
// fetch blogs here
$all_posts = array()
foreach($blogs as $b)
{
switch_to_blog($b->blog_id);
$que …
1
vote
Accepted
Hide root site in Multisite install
I was in a similar situation recently. I ended up putting the root site on a random subdomain (eg ms.domain.com) With the intention of never using the root site.
With that done, I created a plugin t …
1
vote
Accepted
Efficient way to fetch all archived WPMS blogs
You can go directly to the database via $wpdb.
<?php
$wpdb->get_results( "SELECT * FROM $wpdb->blogs WHERE archived = 1" );
Or wrapped up in a function:
<?php
function wpse34731_get_archived_blogs …
2
votes
How to write a plugin to add users to a mail list
You would hook into profile_update and user_register. First check to see if it's a new user and whether she is an admin/editor.
Then send the mail. Same story with updating the user: see if the ro …
2
votes
How to query blogs posts of WordPress sub domain?
You're probably going to have to write some custom SQL for that. Here's an example function that would do this. It's slightly insecure as we can't use $wpdb->prepare to put the blog_id in (it surrou …
4
votes
How to remove the Tools menu item from the WP-Admin menu
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 you …