add partners
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user