From 8da89e0ff4de4da6e82be426f89adfc2c4cf42e5 Mon Sep 17 00:00:00 2001 From: "Jorge vitrubio.net" Date: Mon, 15 Apr 2024 11:41:27 +0200 Subject: [PATCH] agenda ordered by meta value --- page-templates/agenda-search.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/page-templates/agenda-search.php b/page-templates/agenda-search.php index 9931a6e..14d77e3 100644 --- a/page-templates/agenda-search.php +++ b/page-templates/agenda-search.php @@ -59,9 +59,6 @@ get_header(); '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_agenda_date_end', @@ -69,7 +66,9 @@ get_header(); 'compare' => '>=', //show events before today 'type' => 'DATE', ) - ) + ), + 'orderby' => 'meta_value', //order by meta value + 'order' => 'ASC', //order ascendent ) ); ?>