diff --git a/template-repertoire-des-metiers.php b/template-repertoire-des-metiers.php new file mode 100644 index 0000000..45fd40e --- /dev/null +++ b/template-repertoire-des-metiers.php @@ -0,0 +1,268 @@ + + + + + + +
+ + + $pageIcon, + "title" => $currentPage->post_title, + "description" => __("Cherchez une entreprise ou un artisan", "metiers-patrimoine-theme"), + )); + ?> + + + +
+ + +
+ + "publish", + "post_type" => "artisans", + "posts_per_page" => -1, + "paged" => 1, + + ]); + + // write_log($initialPosts); + + foreach ($initialPosts->posts as $key => $artisanPost) { + $post_thumbnail = get_the_post_thumbnail($artisanPost->ID, 'full', array('class' => 'card-artisans__thumbnail card-post__thumbnail')) ?? null; + $post_date = get_the_date('j.m.Y', $artisanPost->ID) ?? null; + + get_template_part( + 'template-components/artisans/card-artisans', + null, + array( + 'card_variant' => 'activite', + 'post_ID' => $artisanPost->ID, + 'post_title' => get_the_title($artisanPost->ID), + 'post_thumbnail' => $post_thumbnail, + 'current_taxonomy' => "elementsbatiments", + 'post_date' => $post_date, + ) + ); + } + ?> + + + + +
+ +
+ +
+