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