
wp-config.php文件——深入探讨如何配置WordPress
the_archive_title ( $before = '', $after = '' )
the_archive_title: 此函数显示当前存档的标题。
显示基于查询对象的档案标题。
function the_archive_title( $before = '', $after = '' ) { $title = get_the_archive_title(); if ( ! empty( $title ) ) { echo $before . $title . $after; } }