From 6e6a3d4fbe524f188fc71ac2bff8f5724c7de2f3 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 4 Jun 2025 11:32:34 +0200 Subject: [PATCH] FEATURE introducing component --- template-parts/articles/articles-grid.php | 73 +++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 template-parts/articles/articles-grid.php diff --git a/template-parts/articles/articles-grid.php b/template-parts/articles/articles-grid.php new file mode 100644 index 0000000..9d19ffc --- /dev/null +++ b/template-parts/articles/articles-grid.php @@ -0,0 +1,73 @@ + 'articles', + 'posts_per_page' => -1 +)); +$post_count = $articles->post_count; +$authors = get_posts(array( + 'post_type' => 'auteurs', + 'posts_per_page' => -1 +)); + +$thematiques = get_terms(array( + 'taxonomy' => 'etiquettes', + 'hide_empty' => true, +)); +?> + +
+
+ +
+

+ + + + + + +

+ + + +
+ + + + + +
+ +
+ +
    + + have_posts()) : ?> + have_posts()) : $articles->the_post(); ?> + get_the_date(), + 'image' => get_the_post_thumbnail_url(), + 'link' => get_the_permalink(), + 'ID' => get_the_ID() + )); ?> + + +
+
\ No newline at end of file