There is a menu layout, you need to pull wordpress on it. This code creates only li tags in the ul list and displays the contents. And how in this code to add another tag "a" inside the tag li?
<ul class='list'> <?php if ( function_exists('wp_nav_menu')) { wp_nav_menu( array( 'theme_location' => 'custom-menu', 'fallback_cb' => 'custom-menu', 'container' => 'ul', 'menu_id' => 'nav', 'menu_class' => 'nav' ) ); } ?> </ul> functions.php:
if( function_exists('register_nav_menus')) { register_nav_menus( array( 'custom-menu'=>__('Custom menu'), ) ); } function custom_menu() { wp_list_pages('title_li=&'); } Layout to be pulled:
<ul class='list'> <li class='item'> <a href=''>Контакты</a> </li> <li class=''> <a href=''>О компании</a> </li> </ul>
'fallback_cb' => 'custom-menu',- the name of the function cannot be with a hyphen (and this function is declared with an underscore) - KAGG Design