WordPress函数post_type_archive_title()

鱼见海资源网最新教程:

介绍

post_type_archive_title()

是自定义文章类型 post type 的archive页面标题。显示 archive.php 和 archive-{posttype}.php 页面标题。

使用

参数

$prefix
(string) (optional) What to display before the title
Default: None
$display
(bool) (optional) Whether to display or retrieve title
Default: true

返回值

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

示例

显示自定义文章类型的archive标题。

文章来源于互联网

© 版权声明
THE END
喜欢就支持一下吧
点赞487 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容