first commit prod
This commit is contained in:
@@ -24,11 +24,21 @@ $current_id[] = get_the_ID();
|
||||
$args = get_posts(array(
|
||||
'post_type' => 'post',
|
||||
'post_status' => 'publish',
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
'posts_per_page' => -1,
|
||||
'orderby' => 'meta_value',
|
||||
'meta_key' => 'informations_debut_event',
|
||||
'order' => 'ASC',
|
||||
'posts_per_page' => 6,
|
||||
'category_name' => $cat,
|
||||
'post__not_in' => $current_id,
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'meta_key' => 'informations_end_event',
|
||||
'value' => date('Y-m-d H:i:s'),
|
||||
'compare' => '>=',
|
||||
'type' => 'DATE',
|
||||
),
|
||||
),
|
||||
|
||||
));
|
||||
|
||||
$context['other'] = $args;
|
||||
|
||||
Reference in New Issue
Block a user