Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Wordpress MultiSite Cross Site Parent Navigation WordPress

  • SOLVED

I have done allot of searching and can not find an answer to this, so I'm here hoping you can help me out...

I am creating 1 main site with Wordpress MultiSite and 5 child sites.

Each child site needs to display the navigation from the main site as if that child site is part of the main and update along with the main sites navigation when changed.

I need to do this as the 5 child sites will essentially be blogs for 5 separate businesses that are part of the umbrella business of the main site. They all need to look and act as if they are part of the main site, however they all require their own administration setup and archives.

The main reason for this is that they can not have access to each others sites as each child site/business will be in competition with each other.

I am hoping <strong>not </strong>to have to use a plugin.

Does anybody have any ideas?

Answers (2)

2011-10-03

S├ębastien | French WordpressDesigner answers:

in the header.php :


$blogid=1; /*if the menu you want to display is the menu of the blog ID=1 **/
switch_to_blog($blogid);
/**above : the code to insert your menu ****/

wp_nav_menu(); /*that's an example*/


/**end of this code**/
restore_current_blog();




the code is testing and it's ok. You can try.


leannekera comments:

S├ębastien I cant thank you enough!

Thats exactly what I was after :)


Issue Resolved.

2011-10-03

Abdessamad Idrissi answers:

No problem :) I'm working on a solution for this custom navigation issue.. and without a plugin.


leannekera comments:

Fantastic, thanks for the fast response.

Few I can relax a little now! :)