From da4cb8bf1eaf73b3a96bc50078501391b751e4a6 Mon Sep 17 00:00:00 2001 From: Fabiano Alencar Date: Mon, 17 Dec 2018 19:07:50 -0200 Subject: [PATCH] Change to display collection title --- src/template-parts/bannerheader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/template-parts/bannerheader.php b/src/template-parts/bannerheader.php index 25d9e83..31e1a7f 100644 --- a/src/template-parts/bannerheader.php +++ b/src/template-parts/bannerheader.php @@ -21,6 +21,8 @@ printf( __( 'Yearly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'Y', 'yearly archives date format', 'tainacan-interface' ) ) ); elseif ( is_author() ) : echo get_the_author(); + elseif ( 'tainacan-collection' == get_post_type() ) : + echo get_the_archive_title(); else : echo tainacan_the_collection_name(); endif;