Importing Multiple DB to one MU database

Best thing to do is read the docs: http://codex.wordpress.org/Tools_Export_Screen and http://codex.wordpress.org/Importing_Content#WordPress and work with WXR files rather than trying to export directly from the database. You also have the option on Import to grab images. Or you can merge the contents of the three wp-content/uploads/ directories, but be aware that it’s possible some images may … Read more

WordPress (+WPMU) Import/Export ALL settings?

Answering another Question, I pointed to this tutorial: Creating a Simple Backup/Restore Settings Feature Lee Pham on Jun 22nd 2012 In this tutorial, I’m going to show you how to create a simple backup/restore feature for your WordPress blog. With this feature, you can backup all options to another place, that you can restore them … Read more

User registration on sub site

What you’ve described is default behavior for WordPress where when a user registers on a subsite, they’re really registering with the root site. Check out this plugin, which looks to help with new user sign ups and adding them to the right subsite. http://wordpress.org/extend/plugins/wpmu-default-user-role/ If that plugin isn’t what you’re looking for then perhaps this … Read more

How to order by blog ID in this multisite ‘List Blogs’ custom function

The following query works. Note the quotes in AND blog_id != ‘1’ global $wpdb; $query = ” SELECT blog_id FROM $wpdb->blogs WHERE site_id = %d AND public=”1″ AND archived = ‘0’ AND mature=”0″ AND spam = ‘0’ AND deleted = ‘0’ AND blog_id != ‘1’ ORDER BY blog_id ASC”; $blogs = $wpdb->get_col( $wpdb->prepare( $query, $wpdb->siteid) … Read more

WPMU – new users are automatically subscribed to the main blog – how to prevent that?

This is a known bug. A fix will be available in 3.6.1, see: http://core.trac.wordpress.org/ticket/25166 For now, either bulk remove the users in WP Admin or do something (ugly and temporary, remove when 3.6.1 is available) like: add_action( ‘wpmu_new_user’, function ( $user_id ) { global $current_site; remove_user_from_blog( $user_id, $current_site->blog_id ); // remove user from main blog. … Read more

How to use JSONP to make AJAX request to different site on network

There’s two parts to this, the javascript ajax call needs specific variables included: $.ajax({ type: “GET”, url: SSL_Ajax.ajaxurl, cache: false, dataType: “jsonp”, crossDomain: true, data: { action : ‘ajaxSSL’, ajaxSSLNonce : SSL_Ajax.ajaxSSLNonce, input : $(‘input[name=title]’).val() }, success: function( data ) { console.log( ‘success’ ); console.log( data ); }, complete: function( data ) { console.log( ‘complete’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)