StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-15-2012, 12:24 PM
cyborge cyborge is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2011
Posts: 19
Default WordPress MultiSite Global Navigation Menu Synchronization

Think I solved this - Will Post Solution Here after it's working.

I'm setting up a Wordpress Multisite Network. I need all sites to share a common menu. I've found some code that makes sense to me but, need to know how/where to put it/add filter - OK, I've found the Genesis menu.php - and hence "genesis_do_subnav"

CODE SAMPLE:
//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
wp_nav_menu(
//add your arguments here
);

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WordPress multisite permalinks tamjl General Discussion 5 03-09-2012 10:30 AM
How to make global nav (parent) menu items only roll over access points Jon hyland General Discussion 4 02-05-2010 05:09 PM


All times are GMT -5. The time now is 02:41 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.