title: How to Add Custom Menu to certain Position in Wordpress
body: <p>I want to add custom menu to my primary menu, I have used this below code for this,</p>
  
  <pre><code>add_filter( 'wp_nav_menu_items', 'search_menu_item', 10, 2 );
  function search_menu_item ( $items, $args ) {
  if ($args-&gt;theme_location == 'secondary-menu') {
  $items .= '&lt;li class="border-none"&gt;SEARCH&lt;form&gt;&lt;input type="text" name="s" placeholder="Search Here" class="search-box"&gt;&lt;/form&gt;';
  }
  return $items;
  }
  </code></pre>
  
  <p>and menu is appearing as a last menu, but I want to add my menu to 3rd position. How do I do this</p>
  
  <p>Can anyone Help??</p>
  
  <p>Thanks</p>