From 9141832d10136cee0cd293b874d04ccd395dec3b Mon Sep 17 00:00:00 2001 From: Patrick McNeil Date: Mon, 23 Oct 2023 15:25:31 -0400 Subject: [PATCH] Update breadcrums to plural name Changed to plural name so when showing an archive page (of all the posts in a post type for example) it makes more sense. --- libs/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Functions.php b/libs/Functions.php index 7b08fd963..25917c497 100644 --- a/libs/Functions.php +++ b/libs/Functions.php @@ -1528,7 +1528,7 @@ public function breadcrumbs($options=array()){ } } elseif ( !is_single() && !is_page() && get_post_type() !== 'post' && !is_404() ){ $post_type = get_post_type_object(get_post_type()); - echo $data['before'] . '' . $post_type->labels->singular_name . '' . $data['after']; + echo $data['before'] . '' . $post_type->labels->name . '' . $data['after']; } elseif ( is_attachment() ){ //@TODO "Nebula" 0: Check for gallery pages? If so, it should be Home > Parent(s) > Gallery > Attachment if ( !empty($post->post_parent) ){ //@TODO "Nebula" 0: What happens if the page parent is a child of another page? echo '
  • ' . strip_tags(get_the_title($post->post_parent)) . '
  • ' . $data['delimiter_html'] . ' ' . strip_tags(get_the_title());