the_archive_title

函数
the_archive_title ( $before = '', $after = '' )
参数
  • (string) $before Optional. Content to prepend to the title. Default empty.
    Required:
    Default: (empty)
  • (string) $after Optional. Content to append to the title. Default empty.
    Required:
    Default: (empty)
相关
  • get_the_archive_title()
定义位置
相关方法
get_the_archive_titlepost_type_archive_titlethe_archive_descriptionthe_titleget_archive_template
引入
4.1.0
弃用
-

the_archive_title: 此函数显示当前存档的标题。

显示基于查询对象的档案标题。

function the_archive_title( $before = '', $after = '' ) {
	$title = get_the_archive_title();

	if ( ! empty( $title ) ) {
		echo $before . $title . $after;
	}
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 14:36:33

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: