W3cubDocs

/WordPress

the_archive_description( string $before = , string $after = )

Displays category, tag, term, or author description.

Description

See also

Parameters

$beforestringoptional
Content to prepend to the description.

Default:''

$afterstringoptional
Content to append to the description.

Default:''

Source

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

Changelog

Version Description
4.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_archive_description