WordPress.org

Ready to get started?Download WordPress

Forums

Global Nav Menu & Footer for WP Network (2 posts)

  1. Gregg Banse
    Member
    Posted 1 year ago #

    I'm trying to create a global menu and footer. I've been looking at Network Wide Menus plugin but it doesn't seem to work. I believe I've followed his instructions but then again I'm not sure and I'd rather not add another plugin.

    I'm working with Thesis theme and trying to hack a solution in a global functions file that each sub-site calls. I want to pull in the main nav menu from the primary site (the first of the Network sites). I can call a menu but what I get is the sub-site's menu. How do I specify the site and the menu together? eg. If I'm in site #3 and I want to use the menu from site #1 how do I tell WP?

    wp_nav_menu( array( 'menu' => 'Main Nav' ) );

  2. Gregg Banse
    Member
    Posted 1 year ago #

    So either no one else has thought of or had to do this, or the answer is so blatantly obvious that I've missed it!

    I did see the function switch_to_blog($new_blog) but I've read this is rather resource intensive. Is the only other option to query the database directly?

Topic Closed

This topic has been closed to new replies.

About this Topic