previous_post()
previous_post( string $format = ‘%’, string $previous = ‘previous post: ‘, string $title = ‘yes’, string $in_same_cat = ‘no’, int $limitprev = 1, string $excluded_categories = ” )
打印到上一篇文章的链接。
Prints a link to the previous post.
说明(Description)
另见函数 previous_post_link()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$format | (string) | 可选 | |
$previous | (string) | 可选 | |
$title | (string) | 可选 | |
$in_same_cat | (string) | 可选 | |
$limitprev | (int) | 可选 | |
$excluded_categories | (string) | 可选 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-includes/deprecated.php:135 | 0 | 5 |
previous_post() 为WP2原创文章,链接:https://www.wp2.cn/functions/previous_post/