I Developing one project and I stuck in small thing which is very small for PHP Expert :D Which i'm not

I'm Trying to make Dropdown list of Custom taxonomies which work on select go to that Custom taxonomies page.

But After lot of search I found Solution But not doing action to go to the selected Custom taxonomies

First I found

```
<?php wp_dropdown_categories( 'taxonomy=my_custom_taxonomy' ); ?>

```

Second I found

```
function fjarrett_custom_taxonomy_dropdown( $taxonomy ) {
$terms = get_terms( $taxonomy );
if ( $terms ) {
    printf( '<select name="%s" class="postform">', esc_attr( $taxonomy ) );
    foreach ( $terms as $term ) {
        printf( '<option value="%s">%s</option>', esc_attr( $term->slug ), esc_html( $term->name ) );
    }
    print( '</select>' );
}
}

```

Which I can use when I insert in any page code billow

```
<?php fjarrett_custom_taxonomy_dropdown( 'my_custom_taxonomy' ); ?>

```

> 
> Credit
>  <https://frankiejarrett.com/2011/09/create-a-dropdown-of-custom-taxonomies-in-wordpress-the-easy-way/>
> 
> 
> 

BUT I DON'T KNOW NOW HOW I GONNA MAKE IT WORKING

Hope you can help me to find solution that from above any one solution can I able to make select and go thing.

---

Thanks in advance

POSSIBLE ANSWER - 1
-------------------

I Found Possible Answer

```
<form id="category-select" class="category-select" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">

    <?php
    $args = array(
        'show_option_none' => __( 'Select category' ),
        'show_count'       => 1,
        'orderby'          => 'name',
        'name'             => 'cat',
        'echo'             => 0,
        'taxonomy'         => 'MyCustomTaxonomys',
        'value_field'      => 'slug'
    );
    ?>

    <?php $select  = wp_dropdown_categories( $args ); ?>
    <?php $replace = "<select$1 onchange='return this.form.submit()'>"; ?>
    <?php $select  = preg_replace( '#<select([^>]*)>#', $replace, $select ); ?>

    <?php echo $select; ?>

    <noscript>
        <input type="submit" value="View" />
    </noscript>

</form>

```

It Give me URL 

> 
> www.website.com/?cat=xxx where xxx is my custom taxonomy
> 
> 
> 

But I Want URL 

> 
> www.website.com/cat/xxx where xxx is my custom taxonomy
> 
> 
> 

Is it possible?