Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using wordpresss custom menue, its working fine have added this code for showing nav bar.

<?php wp_nav_menu( array('menu' => 'main-nav' )); ?>

the problem is that, I want to show drop down menu but its not working. it doesn't show drop down hierarchy. here is the link to my site please see site please guide. Regards Nauman Khattak

share|improve this question
Create a sub menu on Appearance->menu section. To create sub menu you have to drag an item little right under the parent menu item. – Sisir Mar 24 '12 at 9:35
Have done that, i know about how to drag sub menu but its not working. Thanks – Nauman Khattak Mar 24 '12 at 11:40
Can you add the code how you register the menu? By default submenu should show. – Sisir Mar 25 '12 at 7:53

closed as too localized by toscho Feb 17 at 22:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

2 Answers

 function add_menu_support() {
         register_nav_menus(
                    array(
                    'main-menu' => ('Main Navigation'),
            )
                            );
 }            
share|improve this answer

Just add depth parameter in the above array like this :

<?php wp_nav_menu( array('menu' => 'main-nav' , 'depth => 1, )); ?>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.