the_archive_title( string $before = '', string $after = '' )
Displays the archive title based on the queried object.
Description
See also
Parameters
- $before
-
(Optional) Content to prepend to the title.
Default value: ''
- $after
-
(Optional) Content to append to the title.
Default value: ''
Source
File: wp-includes/general-template.php
function the_archive_title( $before = '', $after = '' ) {
$title = get_the_archive_title();
if ( ! empty( $title ) ) {
echo $before . $title . $after;
}
}
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |