the_archive_description()WP 4.1.0

Display the description of the post type, category, tag, term, or author archive page.

This function is useful to display the description of archive page of any type in the theme.

On author archive page, the description is retrieved from his Biographical Info field; on taxonomies archive pages — from their description field. For posts types archive pages — with get_the_post_type_description() function.

No Hooks.


null. Nothing (null).


the_archive_description( $before, $after );
Content to prepend to the description.
Default: ''
Content to append to the description.
Default: ''



#1 Display the description of the archive page (except date archive pages)

Let's display a description for tags, categories, taxonomies or authors.

There is no description for date archive page, because there is no place in admin where you can fill it and there is no place in DB to save it. Moreover, description for date archive almost never used on sites. See code of get_the_archive_description() for details.

<?php the_archive_description(); ?>



Since 4.1.0 Introduced.

the_archive_description() code WP 6.5.3

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