WordPress开发者和主题制作者的搜索引擎



get_previous_posts_page_link ›

Since2.0.10
已弃用n/a
get_previous_posts_page_link ( 没有参数 )
返回:
  • (string|void) The link for the previous posts page.
定义在:
文档:

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.



源码

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