Return all sibling pages after this one, optionally matching a selector
Usage
// basic usage
$items = $page->nextAll();
// usage with all arguments
$items = $page->nextAll($selector = '', $getQty = false, bool $getPrev = false);
Arguments
Name | Type(s) | Description |
---|---|---|
selector (optional) | string, array, bool | Optional selector. When specified, will filter the found siblings. |
getQty (optional) | bool, PageArray | Return a count instead of PageArray? (boolean)
|
getPrev (optional) | bool | For internal use, makes this method implement the prevAll() behavior instead. |
Return value
API reference based on ProcessWire core version 3.0.236