Fix invalid orderby key name for orderby pricing closes #9584
This commit is contained in:
parent
4595befb76
commit
c7aed861cd
|
@ -563,7 +563,7 @@ class WC_Query {
|
|||
$args['order'] = $order == 'ASC' ? 'ASC' : 'DESC';
|
||||
break;
|
||||
case 'price' :
|
||||
$args['orderby'] = "meta_value_num {$wpdb->posts}.ID";
|
||||
$args['orderby'] = "meta_value_num ID";
|
||||
$args['order'] = $order == 'DESC' ? 'DESC' : 'ASC';
|
||||
$args['meta_key'] = '_price';
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue