From 59dd7801df2f46273a54883033cbe060771ee7d6 Mon Sep 17 00:00:00 2001 From: "Jorge vitrubio.net" Date: Mon, 8 Apr 2024 11:34:42 +0200 Subject: [PATCH] added page template arxiu general - genral achive xarxaprod --- page-templates/arxiu-general.php | 144 +++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 page-templates/arxiu-general.php diff --git a/page-templates/arxiu-general.php b/page-templates/arxiu-general.php new file mode 100644 index 0000000..ee50397 --- /dev/null +++ b/page-templates/arxiu-general.php @@ -0,0 +1,144 @@ + + +
+ + + + + +
+ + + + 'xarxaprod-convo', + '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 + //'posts_per_page' => '-1', //show all + 'posts_per_page' => '4', + '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', + ) + ) + ) + ); + ?> + have_posts() ) : ?> + + have_posts() ) : $the_query_archive_convo->the_post(); ?> + + + + + + + + +
+ + +
+ + + + 'post', + 'posts_per_page' => '4', //show all => -1 + 'tax_query' => array( + array( + 'taxonomy' => 'category', + '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_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', + ) + ) + ) + ); + ?> + have_posts() ) : ?> + + have_posts() ) : $the_query_archive_agenda->the_post(); ?> + + + + + + + + + +
+ + +
+ +