correct tag.php

This commit is contained in:
2025-06-20 09:32:24 +03:00
parent 7f1f54f885
commit cbe6f0b3c4
3 changed files with 8 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
<?php get_header(); ?>
<div class="content-middle articles-wrapper">
<?php get_template_part('partials/rubrics-mobile'); ?>
<?php //get_template_part('partials/rubrics-mobile'); ?>
<div class="section-title desktop">
<?php if (is_category()) : ?>
<?php if (is_tag()) : ?>
<h1 class="section-title__title"><?= get_queried_object()->name ?></h1>
<?php endif; ?>
</div>
@@ -13,7 +13,7 @@
'post_type' => 'post',
'posts_per_page' => 13,
'paged' => $paged,
'category__in' => get_queried_object_id()
'tag_id' => get_queried_object_id() // Изменили category__in на tag_id
);
$query = new WP_Query($args);
?>