WordPress at a glance

the_archive_title() WP 1.0

Display the archive title based on the queried object.

Works based on: get_the_archive_title()

No Hooks.


Null. Nothing.


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


  • See: get_the_archive_title()


Since 4.1.0 Introduced.

Code of the_archive_title() WP 5.6

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

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

From tag: Archives (of posts)

More from tag: title (of post page)

More from category: Archives

More from Template Tags: Main Functions

No comments
    Log In