diff --git a/category-partners-en.php b/en/category-partners-en.php similarity index 100% rename from category-partners-en.php rename to en/category-partners-en.php diff --git a/en/post-list-en.php b/en/post-list-en.php index 1b8dc30..e118cd3 100644 --- a/en/post-list-en.php +++ b/en/post-list-en.php @@ -7,15 +7,7 @@ if ($query->have_posts()) { while ($query->have_posts()) { $post_count++; $query->the_post(); - get_template_part('en/content', 'post-en', ['full_width' => $post_count === 1 && $large_first_image]); - if ($post_count === ($large_first_image ? 5 : 4)) : ?> - - - + get_template_part('en/content', 'post-en', ['full_width' => $post_count === 1 && $large_first_image]);?> term_id == 762) { //parthers + $new_template = locate_template('en/category-partners-en.php'); + if ($new_template) { + return $new_template; + } + } + // Проверяем, является ли текущая категория подрубрикой "EN" $parent_id = $category->parent; if ($parent_id && $parent_id == get_cat_ID('EN')) { diff --git a/header.php b/header.php index 412799b..c2686b4 100644 --- a/header.php +++ b/header.php @@ -72,7 +72,7 @@ height="0" width="0" style="display:none;visibility:hidden"> - +
EN
diff --git a/page-for-advertisers.php b/page-for-advertisers.php new file mode 100644 index 0000000..bf306ab --- /dev/null +++ b/page-for-advertisers.php @@ -0,0 +1,50 @@ + 'advertiser', + 'posts_per_page' => 10, + 'orderby' => 'date', + 'order' => 'ASC' +]); + +?> + + + + + \ No newline at end of file diff --git a/sidebar-right-en.php b/sidebar-right-en.php index db77172..a33f212 100644 --- a/sidebar-right-en.php +++ b/sidebar-right-en.php @@ -11,17 +11,3 @@ - - - - - - \ No newline at end of file