WordPress函数:the_archive_description

一、函数简介

显示类别、标记、术语或作者描述。(Displays category, tag, term, or author description.)

 

二、函数参数

* @param string $before Optional. Content to prepend to the description. Default empty. * @param string $after Optional. Content to append to the description. Default empty.

 

三、函数案例

<?php the_archive_description( $before = '', $after = '' ) ?>

 

 

四、源代码

/**
 * Displays category, tag, term, or author description.
 *
 * @since 4.1.0
 *
 * @see get_the_archive_description()
 *
 * @param string $before Optional. Content to prepend to the description. Default empty.
 * @param string $after  Optional. Content to append to the description. Default empty.
 */
function the_archive_description( $before = '', $after = '' ) {
	$description = get_the_archive_description();
	if ( $description ) {
		echo $before . $description . $after;
	}
}

 

 

THE END