'style="background-image: url("' + elem['meta']['feedback_user_feedback_user_photo'] + '")"
$('#load_more_posts').on('click', function (e) {
e.preventDefault();
var $offset = $(this).attr('offset'),
meta_key = $(this).attr('acf_meta_key');
console.log('var = ' + $offset);
$.ajax({
method: 'POST',
url: ajax_object.ajax_url,
type: 'JSON',
data: {
offset: $offset,
acf_meta_key: meta_key,
action: 'load_more_posts'
},
success: function (response) {
console.log(response);
$('#load_more_posts').attr('offset', parseInt(response.data.offset));
var content = '';
if(meta_key === "feedback"){
response.data.post.forEach(function (elem) {
content += '<div class="full-reviews__slide expand-review">' +
'<div class="row mb-4">' +
'<div class="expand-review__author-info col-12 col-lg-4 col-xl-3">' +
'<div class="expand-review__author-thumb"' +
'style="background-image: url("' + elem['meta']['feedback_user_feedback_user_photo'] + '")"></div>';
content += '</div><div class="expand-review__content col-12 col-lg-8 col-xl-9"><h2 class="expand-review__title">'
+ elem['meta']['feedback_title'] + '</h2>' +
'<p class="expand-review__excerpt">' + elem['meta']['feedback_shortdesc'] + '</p>' +
'<a href="' + elem['meta']['permalink'] + '" class="expand-review__read-more">Читать полностью</a></div></div></div>';
});
}
if (content !== '') {
$('#load_more_content').append(content);
}
}
});
});
↵Возникла AJAX HTTP ошибка.↵Полученный код HTTP: 200↵Следует отладочная информация.↵Путь: /admin/structure/contact/manage/contactme/display?ajax_form=1↵Текст Состояния: parsererror↵Текст Ответа: [{"command":"settings","settings":{"ajaxPageState":{"theme":"seven","theme_token":"4kmEdlQeKl5atG_kC0jMsTp8U4hfLBSAxFcbC40Bzvc","libraries":"admin_toolbar\/toolbar.tree,big_pipe\/big_pipe,classy\/base,classy\/messages,contextual\/drupal.contextual-links,contextual\/drupal.contextual-toolbar,core\/drupal.active-link,core\/drupal.collapse,core\/drupal.states,core\/drupal.tabledrag,core\/drupal.tableresponsive,core\/html5shiv,core\/jquery.form,core\/normalize,field_ui\/drupal.field_ui,seven\/drupal.nav-tabs,seven\/global-styling,shortcut\/drupal.shortcut,toolbar\/toolbar,toolbar\/toolbar.escapeAdmin,tour\/tour,user\/drupal.user.icons"},"fieldUIRowsData":{"langcode":......