I have got a filter in tab. I use motors theme. Filter has to redirect on main filter's page with applied options. It redirects and options are applied in list but link is not changed (it should be like this: site.com/?page_id=16410&make=citroen&ca-year=2012&min_price=2000&max_price=200000
) but it's just like this: site.com/?page_id=16410
(main filter page). On this image I chose Chevrolet cars but it didn't apply: Chevrolet
If I choose one more option, it will apply all of them but I want it to work from tabs properly.
Form code:
<form action="<?php echo esc_url( stm_get_listing_archive_link() ); ?>" method="post">
<?php foreach ( $tax_query_args as $taxonomy_term_key => $taxonomy_term ): ?>
<?php //empty($taxonomy_term[0]->numeric) and ?>
<?php if ( !empty( $taxonomy_term[0] ) ): ?>
<div class="col-md-<?php echo esc_attr( $filter_columns_number ); ?> col-sm-6">
<div class="form-group">
<select name="<?php echo ( esc_attr( $taxonomy_term_key ) == "price" ) ? "max_price" : esc_attr( $taxonomy_term_key ) ?>" class="form-control">
<option value=""><?php printf( esc_html__( 'Select %s', 'motors' ), stm_get_name_by_slug( $taxonomy_term_key ) ); ?></option>
<?php foreach ( $taxonomy_term as $attr_key => $attr ): ?>
<option value="<?php echo esc_attr( $attr->slug ); ?>"
<?php if ( $attr->count == 0 && !$taxonomy_term[0]->numeric ) {
echo 'disabled="disabled"';
} ?>
data-disabled="<?php echo ( esc_attr( $attr->count ) == 0 && !$taxonomy_term[0]->numeric ) ? 'disabled' : "null" ?>">
<?php echo ( esc_attr( $taxonomy_term_key ) == "price" ) ? stm_listing_price_view( $attr->name ) : esc_attr( $attr->name ); ?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<div class="col-md-3 col-sm-6">
<div class="row">
<div class="col-md-8 col-sm-12">
<button type="submit" class="button icon-button">
<i class="stm-icon-search"></i><?php esc_html_e( 'Search', 'motors' ); ?>
</button>
</div>
<div class="col-md-4 hidden-sm hidden-xs">
<a href="" class="reset-all reset-styled"
title="<?php esc_html_e( 'Reset search fields', 'motors' ); ?>">
<i class="stm-icon-reset"></i>
</a>
</div>
</div>
</div>
</form>