Hello i am building advanced wordpress custom search with taxonomy filter. But the taxonomy is not being filtered. This is the code for the search form;
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label for="s" class="assistive-text"><?php _e( 'Search', 'understrap' ); ?></label>
<div class="input-group">
<input type="text" class="field form-control" name="s" id="s" placeholder="<?php esc_attr_e( 'Search …', 'understrap' ); ?>" />
<input type="hidden" name="post_type" value="country">
<?php
$args= array('hide_empty'=>false,
);
$district = get_terms('country',$args); ?>
<select name="country">
<option value="" selected="selected"> Select</option>
<?php foreach ($district as $region) {?>
<<option value="albania"> <?php echo $region->name;?></option>
<?php } ?>
</select>
<input type="submit" class="submit btn btn-primary" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'understrap' ); ?>" />
</span>
</div>
</form>
This the query from the url:
http://localhost/home/?s=&post_type=country&country=&submit=Search