diff --git a/includes/class-wc-shortcodes.php b/includes/class-wc-shortcodes.php index b143d2eb224..b8eaa0801a2 100644 --- a/includes/class-wc-shortcodes.php +++ b/includes/class-wc-shortcodes.php @@ -220,7 +220,7 @@ class WC_Shortcodes { foreach ( $product_categories as $category ) { wc_get_template( - 'content-product-cat.php', + 'content-product_cat.php', array( 'category' => $category, ) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index dd97a89858d..cca00d02bd5 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -2491,7 +2491,7 @@ if ( ! function_exists( 'woocommerce_output_product_categories' ) ) { foreach ( $product_categories as $category ) { wc_get_template( - 'content-product-cat.php', + 'content-product_cat.php', array( 'category' => $category, )