Fixes plural title for collections repository level (ref #40)
This commit is contained in:
parent
7bd9b0c918
commit
ee5e03e704
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue