From ee5e03e70477e0ccc1e0bd9db56533a70dfacba4 Mon Sep 17 00:00:00 2001 From: Rodrigo de Oliveira Date: Sun, 25 Apr 2021 01:14:42 -0300 Subject: [PATCH] Fixes plural title for collections repository level (ref #40) --- src/functions/breadcrumb.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/functions/breadcrumb.php b/src/functions/breadcrumb.php index d180f7a..ac122ae 100644 --- a/src/functions/breadcrumb.php +++ b/src/functions/breadcrumb.php @@ -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);