added filter by end date of activitat
This commit is contained in:
parent
55918060d9
commit
dbe3083b11
|
@ -57,18 +57,18 @@ get_header();
|
|||
'field' => 'slug',
|
||||
'terms' => 'activitats'
|
||||
)
|
||||
)
|
||||
),
|
||||
//'order_by' => 'meta_value', //order by meta value
|
||||
//'meta_key' => 'xxp_convo_apply_end', // order by meta key convo apply end
|
||||
//'order' => 'ASC', //order ascendent
|
||||
//'meta_query' => array(
|
||||
// array( //filter results show only older than today
|
||||
// 'key' => 'xxp_convo_apply_end',
|
||||
// 'value' => date("Y-m-d"), // consider using date_i18n() https://developer.wordpress.org/reference/functions/date_i18n/
|
||||
// 'compare' => '<', //show events before today
|
||||
// 'type' => 'DATE',
|
||||
// )
|
||||
//)
|
||||
'order' => 'ASC', //order ascendent
|
||||
'meta_query' => array(
|
||||
array( //filter results show only older than today
|
||||
'key' => 'xxp_agenda_date_end',
|
||||
'value' => date("Y-m-d"), // consider using date_i18n() https://developer.wordpress.org/reference/functions/date_i18n/
|
||||
'compare' => '>=', //show events before today
|
||||
'type' => 'DATE',
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue