Summery Summery
Displays or retrieves the next posts page link.
Syntax Syntax
Parameters Parameters
- $max_page
-
(Optional) Max pages. Default 0.
- $echo
-
(Optional) Whether to echo the link.
Default value: true
Return Return
(string|void) The link URL for next posts page if $echo = false
.
Source Source
File: wp-includes/link-template.php
*/ function next_posts( $max_page = 0, $echo = true ) { $output = esc_url( get_next_posts_page_link( $max_page ) ); if ( $echo ) { echo $output; } else { return $output; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
0.71 | Introduced. |