Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

how to add multiple menu in custom menu widget? i am using this theme. I am new to wordpress and i am unable to sort it out.

share|improve this question
    
Why not just add another widget below the previous custom menu widget? –  Brian Fegter Dec 30 '11 at 13:14
    
@BrianFegter thanks but i just want to know is there any way that i can add it in a single widget –  Manigandan Arjunan Dec 30 '11 at 13:35
add comment

1 Answer

You can find the WP_Nav_Menu_Widget class in wp-includes/default-widgets.php:1059

  1. Simply copy the class (with new name - Example: Foo_Nav_Widget) to your functions.php file.
  2. Edit the form method and replicate the select option (with new id/name) and any variables associated.
  3. Edit the widget method, replicate any associated variables and call your second nav menu underneath the current nav menu.
  4. Register the new widget using register_widget('Foo_Nav_Widget');
share|improve this answer
    
thanks.. i will give a try –  Manigandan Arjunan Dec 30 '11 at 16:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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