Skip to content

Commit 1b55a3e

Browse files
committed
Update EventQuery params to get all events matching the meta & tax queries, instead of limiting based on the WP posts_per_page setting
1 parent 9a4658e commit 1b55a3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/EventQuery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ public function get_results() {
150150
public function params() : array {
151151
return array_merge([
152152
'post_type' => 'greg_event',
153+
// TODO: We should probably allow the user to pass pagination params in
154+
'posts_per_page' => -1,
153155
], $this->meta_clause(), $this->tax_clause());
154156
}
155157

0 commit comments

Comments
 (0)