Slide 42
Slide 42 text
function get_the_archive_title() {
if ( is_category() ) {
$title = sprintf( __( 'Category: %s' ),
single_cat_title( '', false ) );
} elseif ( is_tag() ) {
$title = sprintf( __( 'Tag: %s' ),
single_tag_title( '', false ) );
} elseif ( is_author() ) {
$title = sprintf( __( 'Author: %s' ), '' . get_the_author() . '' );
} elseif ( is_year() ) {
$title = sprintf( __( 'Year: %s' ),
get_the_date( _x( 'Y', 'yearly archives date
format' ) ) );
} elseif ( is_month() ) {