include multiple wp-blog-header.php from different blogs
I want to include more than one wp-blog-header.php like the following.
$config = array(
array(
"path" = "/path/to/blog/1/"
),
array(
"path" = "/path/to/blog/2/"
)
);
foreach($config as $site){
include($site['path']."wp-blog-header.php");
echo get_site_url().' '.$site['path'].'br';
}
I get echo out the first site_url 2 times. So i believe there wordpress doesn't connect to second blog.
Is there a way to reset connection and everything which was included?
Topic wp-blog-header.php Wordpress
Category Web