add partners

This commit is contained in:
argoexpert press
2024-05-25 17:35:08 +03:00
parent 641399598f
commit 088d38c3a8
8 changed files with 87 additions and 25 deletions

View File

@@ -931,6 +931,13 @@ function use_custom_template_for_en_subcategories($template) {
if (is_category()) {
$category = get_queried_object();
if ($category->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')) {