Connect
With Me

/

rss linkedin twitter facebook

14 responses to “WordPress MultiSite Global Navigation Menu Synchronization”

  1. Andreas

    Where would I put the code you posted above?

  2. Robert

    Found this via google where often it’s easier to search for a phrase than dig through all the functions at the codex.

    Thanks for posting. Perfect.

  3. bodie leonard

    Thank you very much I tried another tutorial http://wpmututorials.com/plugins/networkwide-menu/ and was not successfull. Your example worked great. Quick ? Do you know of a plugin or a way to get the like function on this page http://wpdevel.wordpress.com/2011/05/25/jquery-updates-in-wordpress-3-2/ onto a custom wordpress site? I have seen this sharedaddy like button on other blogs but have come up short on my research. Thanks for any input.

  4. Long

    Thank you for sharing this code! Been looking all over for this place till a co-worker mentioned this site. Could this be done in function with multiple wp_nav_menu? Something like this:

    // Global Nav Menu from blog ID 1
    function global_nav_menu() {
    //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);

    //output the WordPress navigation menu
    register_nav_menus( array(
    ‘misc’ => __( ‘Misc Navigation’, ‘twentyten’ ),
    ‘primary’ => __( ‘Primary Navigation’, ‘twentyten’ ),
    ) );

    //switch back to the current blog being viewed
    switch_to_blog($current_blog_id);
    }

    Then output in header.php like this

    ”, ‘menu_class’ => ” , ‘menu_id’ => ”, ‘theme_location’ => ‘misc’, ‘fallback_cb’ => ” ) ); ?>

    ”, ‘menu_class’ => ” , ‘menu_id’ => ”, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) ); ?>

    Not sure if this code would work, but could you please point me the right direction? Much appreciated!

    Long

  5. WordPress MultiSite Global Navigation Menu Synchronization | K Design Blog

    [...] just ran across Oste Design which says, I think, approximately the same thing.  This goes in the theme [...]

  6. Mariana

    Thank you very much …

  7. Groseler

    thank you for the shared code, I have a doubt,
    we have to put this exact code in theme.php that is located in wp-includes?

  8. WordPress MultiSite Global Navigation Menu Synchronization « Karen Alma Arnold

    [...] just ran across Oste Design which says, I think, approximately the same thing.  This goes in the theme [...]

  9. Paul K

    Dude, thank you. This is just perfect. Does exactly what we needed it to do, so we now have a global navigation controlled from the primary blog’s choices from the built in WordPress Menus system.

    This is bookmarked for eternity, never let this sites hosting or domain lapse! ;0)

Leave a Reply