<?php
$data = array(
'slider' => get_field('slider-tovar',$tovar->ID), это фото для слайдера
'composition' => get_field('the-tovar',$tovar->ID),
'size' => get_field('size-tovar',$tovar->ID),
'manufacturer' => get_field('manufacturer-tovar',$tovar->ID),
'term' => get_field('term-tovar',$tovar->ID),
'color' => get_field('color-tovar',$tovar->ID),
'density' => get_field('density-tovar',$tovar->ID),
'text' => strip_tags( get_field('text-tovar',$tovar->ID)),
'price' => get_field('price-tovar',$tovar->ID)
);
?> я wordpress я взял данные
var data = $(this).attr('data-properties');
var redyObject = JSON.parse(data);
// $('.card-box-container-photo-slider').find('.slick-list').find('.slick-track').html(' ');
redyObject.slider.map(function(name) {
$('.slider-url').prepend().attr('src', name.url );
// $('.card-box-container-photo-slider').find('.slick-list').find('.slick-track').prepend('<img src="'+name.url+'" alt="">');
});