diff --git a/Query.php b/Query.php index 621a63a..4a577a3 100644 --- a/Query.php +++ b/Query.php @@ -94,6 +94,17 @@ public function taxonomy($taxonomy) return $this; } + public function offset($offset) + { + if (is_int($offset)) { + $this->setQueryVar('offset', $offset); + } else { + throw new InvalidArgumentException(); + } + + return $this; + } + public function orderBy($orderby = 'name', $order = 'ASC') { $this->setQueryVar('orderby', $orderby);