correct data
This commit is contained in:
@@ -19,29 +19,21 @@ exit;
|
||||
function create_rss_yandex(){
|
||||
|
||||
$posts = get_posts( array(
|
||||
'numberposts' => 20,
|
||||
'category' => 2,
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
'include' => array(),
|
||||
'exclude' => array(),
|
||||
'meta_key' => '',
|
||||
'meta_value' =>'',
|
||||
'post_type' => 'post',
|
||||
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
|
||||
'meta_query' => array(
|
||||
'relation' => 'OR',
|
||||
array(
|
||||
'key' => '_erid_token',
|
||||
'value' => '',
|
||||
'compare' => '='
|
||||
),
|
||||
array(
|
||||
'key' => '_erid_token',
|
||||
'compare' => 'NOT EXISTS'
|
||||
)
|
||||
'numberposts' => 20,
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
'include' => array(),
|
||||
'exclude' => array(),
|
||||
'post_type' => 'post',
|
||||
'suppress_filters' => true,
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'key' => '_send_to_zen_news',
|
||||
'value' => '1',
|
||||
'compare' => '='
|
||||
)
|
||||
));
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
// Яндекс Новости
|
||||
|
||||
Reference in New Issue
Block a user