diff --git a/template-parts/micro/post.php b/template-parts/micro/post.php index 039e2cf..af4571b 100644 --- a/template-parts/micro/post.php +++ b/template-parts/micro/post.php @@ -1,17 +1,22 @@ - - - - - - "/> +name; + $microcategory = $categories[0]->name; + +} elseif ( in_array( get_post_type(), ["anew", "yellow"] ) && !is_tag() && !is_category() ){ + $microcategory = 'Новости'; +} +echo ''; +?> + - - diff --git a/template-parts/micro/terms.php b/template-parts/micro/terms.php index 9783c42..7dfd043 100644 --- a/template-parts/micro/terms.php +++ b/template-parts/micro/terms.php @@ -2,7 +2,7 @@