Tag Info

New answers tagged

0

The reason your PRODUCTS menu is appearing first is because you're echoing it out to the page as part of the filter function. The expectation with filters is that your function receives an argument, $items in this case, modifies it and then returns it to be used by the core code. In order to avoid having to rewrite the code that generates your PRODUCTS ...


0

Hard code the container instead, remove it like this: $args = array( 'theme_location' => 'XXX', 'container' => false ) and hard code it around the wp_nav_menu, remembering to add your static section in wherever you need it: echo '<ul>'; echo '<li><a href="http://...">Static Link</a></li>'; wp_nav_menu($args); ...



Top 50 recent answers are included