From dfdc594c858b4b4b2e4fe4bbd435607ce953091e Mon Sep 17 00:00:00 2001 From: AK Delfin Date: Fri, 20 Jun 2025 12:11:30 +0300 Subject: [PATCH] correct tag code --- functions.php | 1 + header.php | 5 ++++- tag.php | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index ba633b5..76ff30e 100644 --- a/functions.php +++ b/functions.php @@ -222,6 +222,7 @@ function custom_wpseo_breadcrumb_output($output) function custom_pagination($query = null, $class = "pagination") { global $wp_query; + $query = $query ?: $wp_query; $current_page = max(1, get_query_var('paged')); $total_pages = $query->max_num_pages; diff --git a/header.php b/header.php index 99a2221..1c9123e 100644 --- a/header.php +++ b/header.php @@ -47,8 +47,11 @@ height="0" width="0" style="display:none;visibility:hidden"> - + > + + +
diff --git a/tag.php b/tag.php index 0929435..b885b0f 100644 --- a/tag.php +++ b/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(); ?>
- + \ No newline at end of file