correct parts in single-en
This commit is contained in:
@@ -26,7 +26,14 @@ array_push($categories, $firstElement);
|
||||
<?php elseif (is_category()) : ?>
|
||||
<span><?= $current_term->name; ?></span>
|
||||
<?php elseif (is_single()) :?>
|
||||
<span><?= get_cat_name($current_term_ids[0]); ?></span>
|
||||
<span><?
|
||||
$cat1 = get_cat_name($current_term_ids[0]);
|
||||
if ( $cat1 !== 'en') {
|
||||
echo $cat1;
|
||||
} else {
|
||||
echo get_cat_name($current_term_ids[1]);
|
||||
}
|
||||
?></span>
|
||||
<?php else : ?>
|
||||
<span>Parts</span>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user