title: how to add menu in wordpress website
body: <p>How can you add a  wordpress menu? I tried everything but seems not too be working.
  originally I was looking for a way too add dropwon menu . e.g.
  I am using version 3.6.1</p>
  
  <p><strong>Dopdown menu</strong></p>
  
  <pre><code>        &lt;div class="nav-wrap"&gt;
  &lt;ul class="nav"&gt;
                  &lt;li class="on"&gt;
        &lt;a href='index.html' &gt;&lt;?php wp_nav_menu( array( 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary' ) ); ?&gt;&lt;/a&gt;
          &lt;/li&gt;
            &lt;li&gt;
              &lt;a href='#'&gt;About us&lt;/a&gt;
                    &lt;ul class="subnav"&gt;
                      &lt;li&gt;&lt;a href='companyhistory.html'&gt;Company History&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href='visionstatement.html'&gt;Vision Statement &lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href='missionstatement.html'&gt;Mission Statement &lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href='values.html'&gt;Values &lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href='ourpromisetoyou.html'&gt;Our promise to you&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
            &lt;/li&gt;&lt;/ul&gt;
            &lt;/div&gt;
  </code></pre>
  
  <p>but found out this will not work on WordPress. So i tried the WordPress built in menu, but still this does not work.</p>
  
  <p><strong>Function.php</strong></p>
  
  <pre><code> &lt;?php 
      function twentyten_page_menu_args( $args ) {
          $args['show_home'] = true;
          return $args;
      }
      add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
  
          // This theme uses wp_nav_menu() in one location.
          register_nav_menus( array(
              'primary' =&gt; __( 'Primary Navigation', 'twentyten' ),
          ) );
  
      ?&gt;
  </code></pre>
  
  <p><strong>header.php</strong></p>
  
  <pre><code>&lt;?php wp_nav_menu( array( 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary' ) ); ?&gt;&lt;
  </code></pre>