get_the_archive_title()
get_the_archive_title()
根据查询的对象检索存档标题。
Retrieve the archive title based on the queried object.
返回(Return)
(string)存档标题。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.1.0 | wp-includes/general-template.php:1559 | 1 function | 20 |
笔记(Notes)
小贴士:摆脱档案“标签”
不带单词的CPT标题:“Archive”:
在存档标题前添加文本或执行函数。
get_the_archive_title() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_the_archive_title/