WordPress
- 1 ответ
- 0 вопросов
1
Вклад в тег
let href = '/some/data';
$.pjax.reload({container:'#data-grid-view', url:href, push:false});
$.pjax({
url: '/some/data',
container : '#data-grid-view',
push : false,
});
foreach ($posts as $post) {
$comments_number = get_comments_number($post->ID);
if ($comments_number == 0) {
array_push($new_posts, $post);
}
}
foreach ($posts as $post) {
if (strpos($post->post_title, "МСК+0") === false) // <<<==== вот этот блок
continue;
$comments_number = get_comments_number($post->ID);
if ($comments_number == 0) {
array_push($new_posts, $post);
}
}