the_archive_description() WordPress Function

The the_archive_description() function is used to display the description for the current archive. This function is only used for archives that have descriptions.

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

Display category, tag, term, or author description.


Description

Top ↑

See also


Top ↑

Parameters

$before

(string)(Optional) Content to prepend to the description.

Default value: ''

$after

(string)(Optional) Content to append to the description.

Default value: ''


Top ↑

Source

File: wp-includes/general-template.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More