$posts = array(
95 => array( 'count' => 2, 'ID' => 77 ),
65 => array( 'count' => 1, 'ID' => 144 ),
81 => array( 'count' => 1, 'ID' => 106 ),
84 => array( 'count' => 1, 'ID' => 103 ),
0 => array( 'count' => 0, 'ID' => 327 ),
1 => array( 'count' => 0, 'ID' => 326 ),
2 => array( 'count' => 0, 'ID' => 325 )
);
$ids = array();
foreach ($posts as $post) {
$ids[] = $post['ID'];
}
if( $(window).width() <= 768 ) {
$('.filter__wrap-item').slick({
slidesToShow: 2,
slidesToScroll: 1,
arrows: true,
dots: true,
infinite: false,
responsive: [
{
breakpoint: 2500,
settings: "unslick",
},
{
breakpoint: 992,
settings: "slick",
},
]
})
}
<?php $category = get_the_category(); ?>
<a class="post-category-color-text <?php echo $category[0]->slug; ?>" style="background:#36c942" href="#">
<?php echo $category[0]->cat_name; ?>
</a>
/* Пример */
/* Для slug = animals */
.animals{
background: #eee;
}
/* Для slug = birds */
.birds{
background: #ccc;
}
document.addEventListener( 'wpcf7mailsent', function( event ) {
var inputs = event.detail.inputs // отсюда достаем значения полей формы
WBK.sendCrmLead(630, {'name' : name, 'email' : email, 'phone' : phone, 'comment' : comment})
}, false );