Archive subtitles for different types of archives
How about using the single_cat_title() function regardless of what type of archive it is? For example: function get_the_subtitle() { if( is_archive() ) { $subtitle=”Blog posts for “; } if( is_category() || is_tag() ) { $subtitle .= single_cat_title( ”, false ); } if( is_author() ) { $curauth = ( get_query_var( ‘author_name’ ) ) ? get_user_by( ‘slug’, … Read more