correct tag.php
This commit is contained in:
6
tag.php
6
tag.php
@@ -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);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user