From 160dc14a7a758486ca22763ca1e14c98cfba8c09 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Sun, 13 Jul 2025 23:40:52 +0300 Subject: [PATCH] correct micro newsArcticle --- template-parts/micro/post.php | 23 ++++++++++++++--------- template-parts/micro/terms.php | 2 +- template-parts/single/post.php | 5 +++-- 3 files changed, 18 insertions(+), 12 deletions(-) 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 @@ -
+ +