From 41e2393758bad303adab4fbe509b8b5fa2733dce Mon Sep 17 00:00:00 2001 From: Julian Weiland Date: Tue, 20 Jun 2017 13:30:27 +0200 Subject: [PATCH] CPT Archive Support for FoundationPress Breadcrumb On Custom Post Type Archives the breadcrumb currently shows only the "home page". This additional code will add the custom post type name as current menu item. --- library/navigation.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/navigation.php b/library/navigation.php index d847f4833..24f00735a 100644 --- a/library/navigation.php +++ b/library/navigation.php @@ -216,6 +216,11 @@ function foundationpress_breadcrumb( $showhome = true, $separatorclass = false ) // Search results page echo ''; + } elseif ( is_post_type_archive() ) { + + // Custom Post Type Archive Page + echo '
  • ' . post_type_archive_title( '', false ) . '
  • '; + } elseif ( is_404() ) { // 404 page