首页 WordPress函数大全 post_type_archive_title()

post_type_archive_title()

2020-05-02 / 2254阅 / 悠然

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

post_type_archive_title( string $prefix = '', bool $display = true )

显示或检索帖子类型档案的标题。

描述

这是针对archive.php和archive-{$ post_type} .php模板文件进行优化的,用于显示帖子类型的标题。

参数

$prefix

(string)
(Optional)
What to display before the title.

Default value: ''

$display

(bool)
(Optional)
Whether to display or retrieve title.

Default value: true

返回

(string|void) Title when retrieving, null when displaying or failure.

大家谈论
    我的见解