Layered nag - remember orderby #4889
This commit is contained in:
parent
17d03be635
commit
a0ffae78df
|
@ -324,6 +324,10 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
||||||
if ( isset( $_GET['max_price'] ) )
|
if ( isset( $_GET['max_price'] ) )
|
||||||
$link = add_query_arg( 'max_price', $_GET['max_price'], $link );
|
$link = add_query_arg( 'max_price', $_GET['max_price'], $link );
|
||||||
|
|
||||||
|
// Orderby
|
||||||
|
if ( isset( $_GET['orderby'] ) )
|
||||||
|
$link = add_query_arg( 'orderby', $_GET['orderby'], $link );
|
||||||
|
|
||||||
// Current Filter = this widget
|
// Current Filter = this widget
|
||||||
if ( isset( $_chosen_attributes[ $taxonomy ] ) && is_array( $_chosen_attributes[ $taxonomy ]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[ $taxonomy ]['terms'] ) ) {
|
if ( isset( $_chosen_attributes[ $taxonomy ] ) && is_array( $_chosen_attributes[ $taxonomy ]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[ $taxonomy ]['terms'] ) ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue