get_previous_posts_page_link()

最后更新于:2021-11-26 23:16:31

get_previous_posts_page_link()

Retrieves the previous posts page link.

响应

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

源文件

文件: gc-includes/link-template.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 );
	}
}