How to create a single/main navigation menu having menu of all the network sites in wordpress multisite in the front/User side.
Like I have a page of administration in my mother site and also in the child sites, then how can I group a menu Admin with sub-menu administration of site1, administration of site2 and all...
I have tried, 2-3 codes like this
//store the current blog_id being viewed global $blog_id; $current_blog_id = $blog_id;
//switch to the main blog which will have an id of 1 switch_to_blog(1);
wp_nav_menu();
//output the WordPress navigation menu //wp_nav_menu( array('menu' => 'homepagemenu' ));
//wp_nav_menu( //array( 'theme_location' => 'homepagemenu' ) //); // //
//switch back to the current blog being viewed switch_to_blog($current_blog_id);