next_posts()

 

File: wp-includes/link-template.php

function next_posts( $max_page = 0, $echo = true ) {
	$output = esc_url( get_next_posts_page_link( $max_page ) );

	if ( $echo ) {
		echo $output;
	} else {
		return $output;
	}
}

参数:next_posts( int $max_page, bool $echo = true )

Max pages. Default 0. Whether to echo the link.

(string void)如果$echo=false,下一个帖子页面的链接URL。

$max_page

(int)
(Optional)
Max pages. Default 0.

$echo

(bool)
(Optional)
Whether to echo the link.

Default value: true

{acontent3}

You must log in before being able to contribute a note or feedback.

16.67% (1) 次Baidu访问
16.67% (1) 次Google访问
66.67% (4) 次Sogou访问
  • 蜘蛛:Baidu,1次,更新时间:2019-04-24 20:34:45
  • 蜘蛛:Google,1次,更新时间:2019-05-11 03:25:32
  • 蜘蛛:Sogou,4次,更新时间:2019-05-12 14:01:23

参与评论