get_previous_posts_page_link()

Retrieves the previous posts page link.


Description

Will only return string, if not on a single page or post.

Backported from WP-2.1.3 to WP-2.0.10.


Return

(string|void) The link for the previous posts page.


Source

File: wp-includes/link-template.php

function get_previous_posts_page_link() {
	global $paged;

	if ( !is_single() ) {
		$nextpage = intval($paged) - 1;
		if ( $nextpage < 1 )
			$nextpage = 1;
		return get_pagenum_link($nextpage);
	}
}


Changelog

Changelog
Version Description
WP-2.0.10 Introduced.