correct tag code

This commit is contained in:
2025-06-20 12:11:30 +03:00
parent 349dfe7bc6
commit dfdc594c85
3 changed files with 8 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
'post_type' => 'post',
'posts_per_page' => 13,
'paged' => $paged,
'tag_id' => get_queried_object_id() // Используем tag_id вместо category__in
'tag_id' => get_queried_object_id(), // Используем tag_id вместо category__in
);
$query = new WP_Query($args);
@@ -29,6 +29,7 @@
wp_reset_postdata();
?>
</div>
<?php custom_pagination(); ?>
<?php custom_pagination( $query );
wp_reset_postdata();?>
</div>
<?php get_footer(); ?>