Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1003 from derweili/patch-1
Browse files Browse the repository at this point in the history
CPT Archive Support for FoundationPress Breadcrumb
  • Loading branch information
olefredrik authored Jul 19, 2017
2 parents 9972fc9 + 41e2393 commit bff72f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ function foundationpress_breadcrumb( $showhome = true, $separatorclass = false )
// Search results page
echo '<li class="current item-current-search">Search results for: ' . get_search_query() . '</li>';

} elseif ( is_post_type_archive() ) {

// Custom Post Type Archive Page
echo '<li class="current">' . post_type_archive_title( '', false ) . '</li>';

} elseif ( is_404() ) {

// 404 page
Expand Down

0 comments on commit bff72f9

Please sign in to comment.