the_archive_title() WP 1.0
Display the archive title based on the queried object.
Works based on: get_the_archive_title()
No Hooks.
Return
Null. Nothing.
Usage
the_archive_title( $before, $after );
- $before(string)
- Content to prepend to the title.
Default: '' - $after(string)
- Content to append to the title.
Default: ''
Notes
- See: get_the_archive_title()
Changelog
Since 4.1.0 | Introduced. |
Code of the_archive_title() the archive title WP 5.6
function the_archive_title( $before = '', $after = '' ) {
$title = get_the_archive_title();
if ( ! empty( $title ) ) {
echo $before . $title . $after;
}
}Related Functions
From tag: Archives (of posts)
More from tag: title (of post page)
More from category: Archives
More from Template Tags: Main Functions
- bloginfo()
- calendar_week_mod()
- get_bloginfo()
- get_calendar()
- get_current_blog_id()
- get_footer()
- get_header()
- get_search_form()
- get_sidebar()
- get_template_part()
- is_404()
- is_active_sidebar()
- is_admin()
- is_attachment()
- is_author()
- is_category()
- is_comment_feed()