From f031e2e11b030dff9d25cbc9b042f665d56ae2af Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 14 Nov 2012 10:28:11 +0000 Subject: [PATCH] query --- shortcodes/shortcode-init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shortcodes/shortcode-init.php b/shortcodes/shortcode-init.php index c913f2659b2..29e5147124d 100644 --- a/shortcodes/shortcode-init.php +++ b/shortcodes/shortcode-init.php @@ -42,7 +42,7 @@ include_once('shortcode-thankyou.php'); * @return string */ function woocommerce_product_category( $atts ){ - global $woocommerce_loop; + global $woocommerce_loop, $woocommerce; if ( empty( $atts ) ) return; @@ -56,7 +56,7 @@ function woocommerce_product_category( $atts ){ if ( ! $category ) return; - $ordering_args = get_catalog_ordering_args( $orderby, $order ); + $ordering_args = $woocommerce->query->get_catalog_ordering_args( $orderby, $order ); $args = array( 'post_type' => 'product',