diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/produkt/index.phtml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml index 573d50a..9a11630 100644 --- a/views/produkt/index.phtml +++ b/views/produkt/index.phtml @@ -312,17 +312,21 @@ $post_terms = \get_the_terms($post_id, $this->get_option('wpsg_mod_produktartikel_pathkey_cat'));
$arTermDisplay = [];
+
+ if (is_array($post_terms)) {
- foreach ($post_terms as $term) {
-
- if (!in_array($term->slug, $arTermExclude)) {
-
- if ($wpsg_mod_produktartikel_cat_first_level && $term->parent !== 0) continue;
+ foreach ($post_terms as $term) {
- $arTermDisplay[] = $term->name;
+ if (!in_array($term->slug, $arTermExclude)) {
+
+ if ($wpsg_mod_produktartikel_cat_first_level && $term->parent !== 0) continue;
+
+ $arTermDisplay[] = $term->name;
+
+ }
}
-
+
}
asort($arTermDisplay);
|
