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 #911 from mrsWeasel/master
Browse files Browse the repository at this point in the history
Update navigation.php
  • Loading branch information
olefredrik authored Nov 10, 2016
2 parents b77fa8d + 95af10e commit 92ee1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function foundationpress_breadcrumb( $showhome = true, $separatorclass = false )
echo '<li class="separator separator-home"> ' . $separator . ' </li>';
}

if ( is_single() ) {
if ( is_single() && ! is_attachment() ) {

// Single post (Only display the first category)
echo '<li class="item-cat item-cat-' . $category[0]->term_id . ' item-cat-' . $category[0]->category_nicename . '"><a class="bread-cat bread-cat-' . $category[0]->term_id . ' bread-cat-' . $category[0]->category_nicename . '" href="' . get_category_link($category[0]->term_id) . '" title="' . $category[0]->cat_name . '">' . $category[0]->cat_name . '</a></li>';
Expand Down

0 comments on commit 92ee1dd

Please sign in to comment.