From e3b79c854d0bdd1b5db8a37ca7ecb847131bc7f1 Mon Sep 17 00:00:00 2001 From: katzwebservices Date: Mon, 12 Nov 2012 10:39:55 -0700 Subject: [PATCH] Fix the ordering on the best sellers. This was just not working; fixing the `orderby` value fixes that. --- widgets/widget-best_sellers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/widget-best_sellers.php b/widgets/widget-best_sellers.php index 9c91ba032a0..93870a97e7b 100644 --- a/widgets/widget-best_sellers.php +++ b/widgets/widget-best_sellers.php @@ -81,7 +81,7 @@ class WooCommerce_Widget_Best_Sellers extends WP_Widget { 'post_status' => 'publish', 'post_type' => 'product', 'meta_key' => 'total_sales', - 'orderby' => 'meta_value', + 'orderby' => 'meta_value_num', 'no_found_rows' => 1, );