From bdfc332a42811ea4acfc25c20566e5c9597d5c4e Mon Sep 17 00:00:00 2001 From: kermage Date: Mon, 30 May 2022 08:56:51 +0800 Subject: [PATCH] skip counting the total rows --- includes/Sort.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Sort.php b/includes/Sort.php index 9d1cfc2..39abb9e 100644 --- a/includes/Sort.php +++ b/includes/Sort.php @@ -94,6 +94,7 @@ public function create() { $args = array( 'post_type' => $type, 'post_status' => 'any', + 'no_found_rows' => true, 'posts_per_page' => $limit, 'tax_query' => array(), );