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 @@
- + diff --git a/template-parts/single/post.php b/template-parts/single/post.php index a82bfda..a4ee12e 100644 --- a/template-parts/single/post.php +++ b/template-parts/single/post.php @@ -16,7 +16,7 @@ -

+

@@ -48,7 +48,8 @@ -
+ +