diff --git a/inc/template-tags.php b/inc/template-tags.php index 41151ba..5dd3759 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -147,24 +147,26 @@ function the_archive_title( $before = '', $after = '' ) { $title = sprintf( __( 'Month: %s', '_s' ), get_the_date( _x( 'F Y', 'monthly archives date format', '_s' ) ) ); } elseif ( is_day() ) { $title = sprintf( __( 'Day: %s', '_s' ), get_the_date( _x( 'F j, Y', 'daily archives date format', '_s' ) ) ); - } elseif ( is_tax( 'post_format', 'post-format-aside' ) ) { - $title = _x( 'Asides', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) { - $title = _x( 'Galleries', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-image' ) ) { - $title = _x( 'Images', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-video' ) ) { - $title = _x( 'Videos', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-quote' ) ) { - $title = _x( 'Quotes', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-link' ) ) { - $title = _x( 'Links', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-status' ) ) { - $title = _x( 'Statuses', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-audio' ) ) { - $title = _x( 'Audio', 'post format archive title', '_s' ); - } elseif ( is_tax( 'post_format', 'post-format-chat' ) ) { - $title = _x( 'Chats', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format' ) ) { + if ( is_tax( 'post_format', 'post-format-aside' ) ) { + $title = _x( 'Asides', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) { + $title = _x( 'Galleries', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-image' ) ) { + $title = _x( 'Images', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-video' ) ) { + $title = _x( 'Videos', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-quote' ) ) { + $title = _x( 'Quotes', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-link' ) ) { + $title = _x( 'Links', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-status' ) ) { + $title = _x( 'Statuses', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-audio' ) ) { + $title = _x( 'Audio', 'post format archive title', '_s' ); + } elseif ( is_tax( 'post_format', 'post-format-chat' ) ) { + $title = _x( 'Chats', 'post format archive title', '_s' ); + } } elseif ( is_post_type_archive() ) { $title = sprintf( __( 'Archives: %s', '_s' ), post_type_archive_title( '', false ) ); } elseif ( is_tax() ) {