agenda ordered by meta value
This commit is contained in:
parent
db6dc06d56
commit
8da89e0ff4
|
@ -59,9 +59,6 @@ get_header();
|
||||||
'terms' => 'activitats'
|
'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(
|
'meta_query' => array(
|
||||||
array( //filter results show only older than today
|
array( //filter results show only older than today
|
||||||
'key' => 'xxp_agenda_date_end',
|
'key' => 'xxp_agenda_date_end',
|
||||||
|
@ -69,7 +66,9 @@ get_header();
|
||||||
'compare' => '>=', //show events before today
|
'compare' => '>=', //show events before today
|
||||||
'type' => 'DATE',
|
'type' => 'DATE',
|
||||||
)
|
)
|
||||||
)
|
),
|
||||||
|
'orderby' => 'meta_value', //order by meta value
|
||||||
|
'order' => 'ASC', //order ascendent
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue