wpseek.com
WordPress开发者和主题制作者的搜索引擎



the_archive_title › WordPress Function

Since4.1.0
已弃用n/a
the_archive_title ( $before = '', $after = '' )
参数: (2)
  • (string) $before Optional. Content to prepend to the title. Default empty.
    Required: No
    默认: (empty)
  • (string) $after Optional. Content to append to the title. Default empty.
    Required: No
    默认: (empty)
查看:
定义在:
文档:

Displays the archive title based on the queried object.



源码

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

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