Fixes plural title for collections repository level (ref #40)

This commit is contained in:
Rodrigo de Oliveira 2021-04-25 01:14:42 -03:00
parent 7bd9b0c918
commit ee5e03e704
1 changed files with 6 additions and 1 deletions

View File

@ -95,7 +95,12 @@ function tainacan_interface_the_breadcrumb() {
}
echo $before . $str . $after;
} else {
echo $before . $post_type->labels->singular_name . $after;
if ( is_archive() ) {
$str = __( 'Collections', 'tainacan-interface' );
} else {
$str = $post_type->labels->singular_name;
}
echo $before . $str . $after;
}
} elseif ( is_attachment() ) {
$parent = get_post($post->post_parent);