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



posts_nav_link ›

Since0.71
已弃用n/a
posts_nav_link ( $sep = '', $prelabel = '', $nxtlabel = '' )
参数: (3)
  • (string) $sep Optional. Separator for posts navigation links. Default empty.
    Required: No
    默认: (empty)
  • (string) $prelabel Optional. Label for previous pages. Default empty.
    Required: No
    默认: (empty)
  • (string) $nxtlabel Optional Label for next pages. Default empty.
    Required: No
    默认: (empty)
定义在:
文档:

Displays the post pages link navigation for previous and next pages.



源码

function posts_nav_link( $sep = '', $prelabel = '', $nxtlabel = '' ) {
	$args = array_filter( compact( 'sep', 'prelabel', 'nxtlabel' ) );
	echo get_posts_nav_link( $args );
}