add mored evevnts

This commit is contained in:
arlemp@selectel.ru
2023-03-27 23:26:09 +03:00
parent 5f000ece92
commit 2221530741
3 changed files with 51 additions and 7 deletions

View File

@@ -7,14 +7,14 @@ $posts = get_posts( array(
'order' => 'DESC',
'include' => array(),
'exclude' => array(),
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'post',
'post__not_in' => array($post_id),
'meta_query' => array(
array(
'key' => '_thumbnail_id',
//'compare' => 'EXISTS'
'key' => 'startevent',
'orderby' => 'meta_value',
'order' => 'DESC'
)
),
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса