Merge pull request #2784 from leewillis77/issue_2783

Order bestselling products correctly, order term should be numerically s...
This commit is contained in:
Mike Jolley 2013-03-22 11:06:54 -07:00
commit ccfd4c2164
1 changed files with 1 additions and 1 deletions

View File

@ -702,7 +702,7 @@ class WC_Shortcodes {
'ignore_sticky_posts' => 1,
'posts_per_page' => $per_page,
'meta_key' => 'total_sales',
'orderby' => 'meta_value',
'orderby' => 'meta_value_num',
'meta_query' => array(
array(
'key' => '_visibility',