the_archive_description

函式
the_archive_description ( $before = '', $after = '' )
引數
  • (string) $before Optional. Content to prepend to the description. Default empty.
    Required:
    Default: (empty)
  • (string) $after Optional. Content to append to the description. Default empty.
    Required:
    Default: (empty)
相關
  • get_the_archive_description()
定義位置
相關方法
get_the_archive_descriptionthe_author_descriptionterm_descriptionget_file_descriptiontag_description
引入
4.1.0
棄用
-

the_archive_description: 這個函式顯示當前檔案的描述。

顯示類別、標籤、術語或作者描述。

function the_archive_description( $before = '', $after = '' ) {
	$description = get_the_archive_description();
	if ( $description ) {
		echo $before . $description . $after;
	}
}

常見問題

FAQs
檢視更多 >