the_archive_title( string $before = '', string $after = '' )

Display the archive title based on the queried object.


Description

Top ↑

See also


Top ↑

Parameters

$before string Optional
Content to prepend to the title.

Default: ''

$after string Optional
Content to append to the title.

Default: ''


Top ↑

Source

File: wp-includes/general-template.php. View all references

function the_archive_title( $before = '', $after = '' ) {
	$title = get_the_archive_title();

	if ( ! empty( $title ) ) {
		echo $before . $title . $after;
	}
}


Top ↑

Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.