Change to display collection title

This commit is contained in:
Fabiano Alencar 2018-12-17 19:07:50 -02:00
parent 660c60ab76
commit da4cb8bf1e
1 changed files with 2 additions and 0 deletions

View File

@ -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;