title: Wordpress Header.php: Creating Multiple Menus for Separate Pages
body: <p>I am attempting to create multiple menus for separate pages on a Wordpress website.  I would like the theme to load Primary Menu, unless the individual page specifies a different one through the Custom Fields.</p>
  
  <p>Attempting to add this code to the Header.php, yet having issues with the themes custom settings, as the php does not have a "wp_nav_menu".</p>
  
  <pre><code>&lt;?php wp_nav_menu( array( 'container' =&gt; 'none', 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary', 'menu' =&gt; get_post_meta( $post-&gt;ID, 'MenuName', true) ) ); ?&gt;
  </code></pre>
  
  <p>When I add this directly to the current code, it causes the Main Menu to double up on top of the already existing custom menu from the theme.  Here is the themes header.php existing code:</p>
  
  <pre><code>&lt;?php do_action( 'presscore_body_top' ); ?&gt;
  
  &lt;div id="page"&lt;?php if ( 'boxed' == of_get_option('general-layout', 'wide') ) echo ' class="boxed"'; ?&gt;&gt;
  
   &lt;?php if ( of_get_option('top_bar-show', 1) ) : ?&gt;
  
  &lt;?php get_template_part( 'templates/header/top-bar', of_get_option('top_bar-content_alignment', 'side') ); ?&gt;
  
  &lt;?php endif; // show top bar ?&gt;
  
  &lt;?php if ( apply_filters( 'presscore_show_header', true ) ) : ?&gt;
  
  &lt;?php get_template_part( 'templates/header/header', of_get_option( 'header-layout', 'left' ) ); ?&gt;
  
  &lt;?php endif; // show header ?&gt;
  
  &lt;?php do_action( 'presscore_before_main_container' ) ; ?&gt;
  
  &lt;div id="main" &lt;?php presscore_main_container_classes(); ?&gt;&gt;&lt;!-- class="sidebar-none", class="sidebar-left", class="sidebar-right" --&gt;
  
   &lt;?php if ( presscore_is_content_visible() ): ?&gt;
  
      &lt;div class="main-gradient"&gt;&lt;/div&gt;
  
      &lt;div class="wf-wrap"&gt;
          &lt;div class="wf-container-main"&gt;
  
              &lt;?php do_action( 'presscore_before_content' ); ?&gt;
  
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Where in this code can I create this option for individual pages to pull for a separate menu?</p>