Skip to content

Commit

Permalink
Fix(pagi): Fix item range offset (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwebca authored Oct 28, 2022
1 parent ff9f056 commit 00bc595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pagi.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function prepare()
Arr::get($GLOBALS, 'wp_query')->query_vars ?? []
)->filter();

$this->items = collect()->range(0, Arr::get($GLOBALS, 'wp_query')->found_posts);
$this->items = collect()->range(1, Arr::get($GLOBALS, 'wp_query')->found_posts);
}

if ($this->query->isEmpty()) {
Expand Down

0 comments on commit 00bc595

Please sign in to comment.