previous_posts()
最后更新于:2021-11-27 20:07:14
previous_posts( bool$echo=true)Displays or retrieves the previous posts page link.
参数
- $echo
-
(bool) (Optional) Whether to echo the link.
Default value: true
响应
(string|void) The previous posts page link if $echo = false
.
源文件
文件: gc-includes/link-template.php
function previous_posts( $echo = true ) {
$output = esc_url( get_previous_posts_page_link() );
if ( $echo ) {
echo $output;
} else {
return $output;
}
}