Uses
| Uses | Description |
|---|---|
| wp-includes/formatting.php: esc_url() | Checks and cleans a URL. |
| wp-includes/link-template.php: get_next_posts_page_link() | Retrieves the next posts page link. |
Displays or retrieves the next posts page link.
(int) (Optional) Max pages. Default 0.
(bool) (Optional) Whether to echo the link.
Default value: true
(string|void) The link URL for next posts page if $echo = false.
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;
}
} | Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/next_posts