Im wondering how to display all my previusly added menus as dropdown (like categories dropdown) in widget.

I know how to display categoreis as dropdown in widget, it’s like this:

    <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 ) ); ?>

But how to get all my menus?

I need this specific menu to display it on my widget depends on what category im.

Read more here: How to display all added menus as dropdown in widget?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: