How can I connect to another WP database and use WP_Query?
I can connect to the other database with
$db2 = new wpdb( $user, $pass, $db, $host );, but how to I get
WP_Query() to use
I want to be able to use the loop just the same with
$db2 as I can with the original connection.
WP_Queryuses the global
$wpdb. What you'll have to do is replace
WP_Query, then set it back when you're done.