Click here to Skip to main content
15,888,148 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello World, I called menu bar from admin, I want print sub-menu of a parent menu, I have total 20 sub-menu but I wanna print 10 sub-menu on parent menu hover. Code here...
PHP
<?php

$defaults = array(
'theme_location'  => '',
'menu'            => 'menu',
'container'       => 'div',
'container_class' => '',
'container_id'    => '',
'menu_class'      => 'menu',
'menu_id'         => '',
'echo'            => true,
'fallback_cb'     => 'wp_page_menu',
'before'          => '',
'after'           => '',
'link_before'     => '',
'link_after'      => '',
'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth'           => 0,
'walker'          => ''
);

wp_nav_menu( $defaults );

?>
Posted
Comments
Member 10011989 19-Sep-15 3:48am    
why you need to do this ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900