get_previous_posts_page_link

函数


get_previous_posts_page_link ( No parameters )
返回值
  • (string|void) The link for the previous posts page.
定义位置
  • wp-includes/link-template.php
    , line 2541
引入
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.

function get_previous_posts_page_link() {
	global $paged;

	if ( ! is_single() ) {
		$nextpage = (int) $paged - 1;
		if ( $nextpage