// If on a category or tag archive, use the term title.
} elseif ( is_category() ||
is_tag() ) { $title['title'
] =
single_term_title( '', false
);
// If on an author archive, use the author's display name.
} elseif ( is_author() &&
get_queried_object() ) { $author =
get_queried_object();
$title['title'
] =
$author->display_name;
// If it's a date archive, use the date as the title.
} elseif ( is_year() ) { $title['title'
] =
get_the_date( _x( 'Y', 'yearly archives date format'
) );
} elseif ( is_month() ) { $title['title'
] =
get_the_date( _x( 'F Y', 'monthly archives date format'
) );
} elseif ( is_day() ) { $title['title'
] =
get_the_date();
} // Add a page number if necessary.
if ( ( $paged >= 2 ||
$page >= 2
) && !
is_404() ) { /* translators: %s: Page number. */