wp_link_pages
wp_link_pages ( $args = '' )
Parameters:- (string|array) args { Optional. Array or string of default arguments. @type string $before HTML or text to prepend to each link. Default is `<p> Pages:`. @type string $after HTML or text to append to each link. Default is `</p>`. @type string $link_before HTML or text to prepend to each link, inside the `<a>` tag. Also prepended to the current item, which is not linked. Default empty. @type string $link_after HTML or text to append to each Pages link inside the `<a>` tag. Also appended to the current item, which is not linked. Default empty. @type string $aria_current The value for the aria-current attribute. Possible values are 'page', 'step', 'location', 'date', 'time', 'true', 'false'. Default is 'page'. @type string $next_or_number Indicates whether page numbers should be used. Valid values are number and next. Default is 'number'. @type string $separator Text between pagination links. Default is ' '. @type string $nextpagelink Link text for the next page link, if available. Default is 'Next Page'. @type string $previouspagelink Link text for the previous page link, if available. Default is 'Previous Page'. @type string $pagelink Format string for page numbers. The % in the parameter string will be replaced with the page number, so 'Page %' generates "Page 1", "Page 2", etc. Defaults to '%', just the page number. @type int|bool $echo Whether to echo or not. Accepts 1|true or 0|false. Default 1|true. }
Returns:- (string) Formatted output in HTML.
Defined at:Change Log: - Introduced in WordPress: 1.2.0
- Deprecated in WordPress: —
Description
The formatted output of a list of pages.Displays page links for paginated posts (i.e. including the ``
Quicktag one or more times). This tag must be within The Loop.