1function prefix_category_title( $title ) {
2 if ( is_category() ) {
3 $title = single_cat_title( '', false );
4 }
5return $title;
6}
7
8add_filter( 'get_the_archive_title', 'prefix_category_title' );
1if ( is_category() ) {
2 $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
3 } elseif ( is_tag() ) {
4 $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
5 } elseif ( is_author() ) {
6 $title = sprintf( __( 'Autor: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
7 }
8
9//directory: wp-includes
10//file: general-template.php
11//find function: get_the_archive_title() change: