It was resolved. This question was specific to some particular project and it’s requirements. And, it was fulfilled at that time with a multisite function for WordPress.
What I did:
The task was done using a sub-class of WP_Query named WP_Query_Multisite. This class provides us arguments to use for which site to grab the info from.
What I used is:
if( ($taxonomy != '') AND ( $taxonomy_term_slug != '' ) ) {
$is_taxonomy_query = TRUE;
// This is a call with taxonomy so set those args
$args = array(
'post_type' => $post_type,
'post_status' => array( 'pending', 'draft', 'future' ),
$taxonomy => $taxonomy_term_slug
);
}
else {
$args = array(
'post_type' => $post_type,
'post_status' => array( 'pending', 'draft', 'future' )
);
}
// Run Our MultiSite Query
$query = new WP_Query_Multisite( $args );
And, then using the global variable blog_id in the loop:
global $blog_id;
echo get_blog_details( $blog_id )->blogname;