首页 WordPress函数大全 previous_post_link()

previous_post_link()

2020-05-02 / 3111阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

previous_post_link( string $format = '« %link', string $link = '%title', bool $in_same_term = false, array|string $excluded_terms = '', string $taxonomy = 'category' )

显示与当前帖子相邻的上一个帖子链接。

描述

See also See also

  • get_previous_post_link()

Top ↑

参数

$format

(string)
(Optional)
Link anchor format. Default '« %link'.

Default value: '« %link'

$link

(string)
(Optional)
Link permalink format.

Default value: '%title'

$in_same_term

(bool)
(Optional)
Whether link should be in a same taxonomy term.

Default value: false

$excluded_terms

(array|string)
(Optional)
Array or comma-separated list of excluded term IDs.

Default value: ''

$taxonomy

(string)
(Optional)
Taxonomy, if $in_same_term is true.

Default value: 'category'

大家谈论
    我的见解