WordPress at a glance
function is not described

get_previous_posts_page_link() WP 2.0.10

Retrieves the previous posts page link.

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

Backported to 2.0.10 from 2.1.3.

No Hooks.

Return

String|null. The link for the previous posts page.

Usage

get_previous_posts_page_link();

Notes

  • Global. Int. $paged

Changelog

Since 2.0.10 Introduced.

Code of get_previous_posts_page_link() WP 5.7.2

<?php
function get_previous_posts_page_link() {
	global $paged;

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