From 239f2be885a4e7c680b707e0167f7261bb1787d6 Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 16 Mar 2026 10:14:33 +0100 Subject: [PATCH] FEATURE Introducing the toolbar component --- .../components/archive/post-grid-toolbar.php | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 template-parts/components/archive/post-grid-toolbar.php diff --git a/template-parts/components/archive/post-grid-toolbar.php b/template-parts/components/archive/post-grid-toolbar.php new file mode 100644 index 0000000..bc5a968 --- /dev/null +++ b/template-parts/components/archive/post-grid-toolbar.php @@ -0,0 +1,74 @@ +post_count; +$current_post_type_obj = get_post_type_object($current_post_type); + + +$post_ids = wp_list_pluck($posts_query->posts, 'ID'); + +$types = get_terms(array( + 'taxonomy' => 'type', + 'hide_empty' => true, +)); + +$authors = get_authors_linked_to_posts($post_ids); +$tags = get_terms(array( + 'taxonomy' => 'etiquettes', + 'hide_empty' => true, + 'object_ids' => $post_ids, +)); + + ?> + +
+
+

Filtrer par

+
+ + + +
+
+
+ + + + + + + +
+ +

+ + + + 1) : ?> + + labels->name; ?> + + + + labels->singular_name; ?> + + +

+ +