From 55918060d97cad27f9ef7c42d5076373d5459383 Mon Sep 17 00:00:00 2001 From: "Jorge vitrubio.net" Date: Mon, 8 Apr 2024 09:36:26 +0200 Subject: [PATCH] renamed templates and restructured logic --- page-templates/agenda-archive.php | 2 +- page-templates/agenda-search.php | 96 +++++++++++++++++++ .../{funds-search.php => ajut-search.php} | 2 +- page-templates/associats-search.php | 2 +- page-templates/convos-archive.php | 2 +- page-templates/convos-search.php | 2 +- page-templates/faqs-page.php | 2 +- page-templates/front-page.php.off | 53 ---------- 8 files changed, 102 insertions(+), 59 deletions(-) create mode 100644 page-templates/agenda-search.php rename page-templates/{funds-search.php => ajut-search.php} (98%) delete mode 100644 page-templates/front-page.php.off diff --git a/page-templates/agenda-archive.php b/page-templates/agenda-archive.php index 084814f..eeb56b8 100644 --- a/page-templates/agenda-archive.php +++ b/page-templates/agenda-archive.php @@ -2,7 +2,7 @@ /** * The template for displaying the "agenda" activities with search capabilities * - * Template Name: Pagina Agenda + * Template Name: Agenda Arxiu * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/template-files-section/page-template-files/ diff --git a/page-templates/agenda-search.php b/page-templates/agenda-search.php new file mode 100644 index 0000000..8fa1057 --- /dev/null +++ b/page-templates/agenda-search.php @@ -0,0 +1,96 @@ + + +
+ + + + +
+ + + + 'post', + 'posts_per_page' => '40', //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_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_agenda->the_post(); ?> + + + + + + + + + +
+
+ + - -
- - -
-

-
- - -
- -