query
This commit is contained in:
parent
d3068c2bef
commit
f031e2e11b
|
@ -42,7 +42,7 @@ include_once('shortcode-thankyou.php');
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function woocommerce_product_category( $atts ){
|
function woocommerce_product_category( $atts ){
|
||||||
global $woocommerce_loop;
|
global $woocommerce_loop, $woocommerce;
|
||||||
|
|
||||||
if ( empty( $atts ) ) return;
|
if ( empty( $atts ) ) return;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ function woocommerce_product_category( $atts ){
|
||||||
|
|
||||||
if ( ! $category ) return;
|
if ( ! $category ) return;
|
||||||
|
|
||||||
$ordering_args = get_catalog_ordering_args( $orderby, $order );
|
$ordering_args = $woocommerce->query->get_catalog_ordering_args( $orderby, $order );
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'product',
|
'post_type' => 'product',
|
||||||
|
|
Loading…
Reference in New Issue