Un motore di ricerca WordPress per sviluppatori e autori di temi



get_previous_posts_page_link ›

Da2.0.10
Deprecaton/a
get_previous_posts_page_link ( Nessun parametro )
Ritorna:
  • (string|void) The link for the previous posts page.
Definito a:
Codex:

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.



Sorgenti

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 );
	}
}