View difference between Paste ID: RAmASqD2 and Zvmtt9wX
SHOW: | | - or go back to the newest paste.
1
global $wp_query;
2
$args = array_merge( $wp_query->query_vars, 
3
array( 
4-
	'post_type' => 'product',
4+
5
		array(
6
			'taxonomy' => 'sort',
7
			'field' => 'slug',
8
			'terms' => $_GET['style']
9
		)
10
	)
11
 ) );
12
13
query_posts( $args );