=ArrayFormula(REGEXREPLACE(A1:A;"\?\d+";""))
$terms = get_terms(array(
'taxonomy' => array('catalog'),
'orderby' => 'name',
'order' => 'ASC',
'hierarchical' => false,
'hide_empty' => 0,
'parent' => get_queried_object_id() // Возвращает ID текущей категории
));
?>
<div class="section section_catalog">
<div class="section__inner container">
<div class="grid grid_4 grid_add-spaces grid_center grid_categories">
<?php foreach ($terms as $term) { ?>
<div class="grid__item">
<a href="<?= get_term_link($term->term_id, 'catalog'); ?>" class="catalog-box catalog-box_category catalog-box_<?= $term->term_id; ?>">
<div class="catalog-box__img-wrap">
<div class="catalog-box__img"></div>
</div>
<div class="catalog-box__info">
<div class="catalog-box__title" title="<?= $term->name; ?>">
<div class="catalog-box__title-inner">
<?= $term->name; ?>
</div>
</div>
<div class="catalog-box__text">
<?= str_replace(',', ', ', $term->description); ?>
</div>
</div>
</a>
</div>
<?php } ?>
</div>
</div>
</div>
title="<?= esc_attr($term->name); ?>">
<div class="row">
<div class="col-xs-12 col-sm-12 col-lg-6 col-lg-push-6">
<h2 class="left-h2">Заголовок весь такой красивый</h2>
<p><a href="#" class="button-details button-details-light">Узнать подробности</a></p>
</div>
<div class="col-xs-12 col-sm-12 col-lg-6 col-lg-pull-6">
<p class="right-description">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae assumenda tempora natus, ad optio harum provident aperiam sint corporis qui fuga odit voluptatum est ea nam voluptates, laudantium, voluptas cum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique quia et quae optio est aliquid ratione natus rerum, soluta accusamus libero asperiores ducimus alias consectetur quasi suscipit tenetur quibusdam, ipsa!</p>
</div>
</div>
p {
visibility: hidden;
opacity: 0;
transition: visibility ease 0s, opacity ease 1s;
}
li:hover p {
visibility: visible;
opacity: 1;
}