get_next_posts_page_link

Definition:
function get_next_posts_page_link($max_page = 0) {}

Retrieve next posts page link.
Backported from 2.1.3 to 2.0.10.

Parameters

  • int $max_page: Optional. Max pages.

Source code

function get_next_posts_page_link($max_page = 0) {

	global $paged;



	if ( !is_single() ) {

		if ( !$paged )

			$paged = 1;

		$nextpage = intval($paged) + 1;

		if ( !$max_page || $max_page >= $nextpage )

			return get_pagenum_link($nextpage);

	}

}

1502

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: