diff --git a/modules/class-wp-sweepbright-query.php b/modules/class-wp-sweepbright-query.php index 04705dc3..ee1428bf 100644 --- a/modules/class-wp-sweepbright-query.php +++ b/modules/class-wp-sweepbright-query.php @@ -569,6 +569,9 @@ public static function list($params) ]); // Count totals + if (empty($params['page'])) { + $params['page'] = 1; + } $max_per_page = WP_SweepBright_Helpers::settings_form()['max_per_page']; $total_posts = count($results['estates']); $total_pages = ceil($total_posts / $max_per_page);