diff --git a/templates/loop/sorting.php b/templates/loop/sorting.php index 1a50b6d9bdc..71cdd688fc1 100644 --- a/templates/loop/sorting.php +++ b/templates/loop/sorting.php @@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $woocommerce, $wp_query; -if ( ! woocommerce_products_will_display() || ( $wp_query->post_count == 1 && ! is_paged() ) ) +if ( ! woocommerce_products_will_display() || 1 == $wp_query->found_posts ) return; ?>