How to move a WordPress multisite?

You should be able to export www.mysite.com/anothersite to a WXR file using Tools » Export in your WordPress backend — www.mysite.com/anothersite/wp-admin. Then you can go to www.mysite.com/wp-admin, remove the existing content (delete your existing posts / pages / etc — export them first if you want/need a backup) and then use Tools » Import to … Read more

Include Site 1 Posts in Query for Sub Sites

If you want to work with it just like with WP_Query, you can use this construction. $query = new Network_Query( array( ‘blog_id’ => array( 1, get_current_blog_id() ), ‘posts_per_page’ => 5, ‘date_query’ => array( ‘after’ => date(‘Y-m-d’, strtotime(‘-1130 days’)) ), ‘meta_query’ => array( array( ‘key’ => ‘shows’, ‘value’ => $id, ‘compare’ => ‘LIKE’, ) ) ) … Read more

404 redirecting to home [closed]

If this is not occurring on your local installation: have you checked your webserver’s configuration? Since the locally it works and it seems to work for the 404’s of your subsites of your mainsite I would check this and make sure no plugins are activated during debugging this issue. If you use Apache with mod_rewrite … Read more

Create a page for a theme only

So instead of creating a theme for it i ended up using the template_redirect with an if statement to check the url for a certain thing. function page_redirect() { if ($_SERVER[‘REQUEST_URI’] == $home . ‘/other-sites’) { require(TEMPLATEPATH . ‘/includes/other-sites.php’); } if ($_SERVER[‘REQUEST_URI’] == $home . ‘login’) { require(TEMPLATEPATH . ‘/includes/login.php’); } } add_action(‘template_redirect’, ‘page_redirect’); Simply … Read more

Share DB tables between two blogs on the same WP Multisite installation

You can switch back and forth between blogs on a multisite with switch_to_blog and restore_current_blog. That should allow you to get anything you’d like and make queries as if you were actually on the other blog. Check them out: http://codex.wordpress.org/WPMU_Functions/switch_to_blog http://codex.wordpress.org/WPMU_Functions/restore_current_blog We did a lot of this with one of our recent sites.