首页 WordPress函数大全 next_post_link()

next_post_link()

2020-05-02 / 1890阅 / 悠然

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

next_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_next_post_link()

Top ↑

参数

$format

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

Default value: '%link »'

$link

(string)
(Optional)
Link permalink format. Default '%title'

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'

大家谈论
    我的见解