Core Function
View Source on Trac ↗ paginate_links()
paginate_links( mixed $args = '' ) Retrieves paginated links for archive post pages.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | array) $args { Optional. Array or string of arguments for generating paginated links for archives. Required |
Return Value
((string)
(string | string[] | void) String of page links or array of page links, depending on 'type' argument.
Void if total number of pages is less than 2.
Function Information
Since Version
2.1.0
Source File
wp-includes/general-template.php
Advertisement