Im wondering how to display all my previusly added menus(navigation menus) as dropdown (like categories dropdown) in widget. In widget are it’s call “Custom Menus” width desc: “Add a custom menu to your sidebar”.
I know how to display categoreis as dropdown in widget, it’s like this:
<p>
<label for="<?php echo $this->get_field_id( 'category' ); ?>"><?php _e( 'Show menu on market', 'textdomain' ); ?>:</label>
<?php wp_dropdown_categories( array( 'show_option_none' =>' ','name' => $this->get_field_name( 'category' ), 'selected' => $category ) ); ?>
</p>
But how to get all navigation menus?
I need this specific menu to display it on my widget depends on what category im.
Read more here: How to display all navigation menus as dropdown in widget?