WordPress at a glance
function is not described

next_posts() WP 0.71

Displays or retrieves the next posts page link.

No Hooks.


String/null. The link URL for next posts page if $echo = false.


next_posts( $max_page, $echo );
Max pages.
Default: 0
Whether to echo the link.
Default: true

Code of next posts: wp-includes/link-template.php VER 5.0.3

function next_posts( $max_page = 0, $echo = true ) {
	$output = esc_url( get_next_posts_page_link( $max_page ) );

	if ( $echo )
		echo $output;
		return $output;