next_posts

Definition:
function next_posts( $max_page = 0, $echo = true ) {}

Display or return the next posts page link.

Parameters

  • int $max_page: Optional. Max pages.
  • boolean $echo: Optional. Echo or return;

Source code

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;

}

2445

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: