the_archive_title() – Display the archive title based on the queried object.
You appear to be a bot. Output may be restricted
Description
Displays the archive title based on the queried object.
Usage
the_archive_title( $before, $after );
Parameters
- $before
- ( string ) optional – Optional. Content to prepend to the title. Default empty.
- $after
- ( string ) optional – Optional. Content to append to the title. Default empty.
Returns
void
Source
File name: wordpress/wp-includes/general-template.php
Lines:
1 to 7 of 7
function the_archive_title( $before = '', $after = '' ) { $title = get_the_archive_title(); if ( ! empty( $title ) ) { echo $before . $title . $after; } }