posts as $key => $artisanPost) {
- $post_date = get_the_date('j.m.Y', $artisanPost->ID) ?? null;
-
- get_template_part(
- 'template-components/artisans/card-artisans-search',
- null,
- array(
- 'card_variant' => 'activite',
- 'post_ID' => $artisanPost->ID,
- 'post_title' => get_the_title($artisanPost->ID),
- 'current_taxonomy' => "elementsbatiments",
- 'post_date' => $post_date,
- )
- );
- }
+ get_template_part("template-components/heading-box", null, array(
+ "pageIcon" => $pageIcon,
+ "title" => $currentPage->post_title,
+ "description" => __("Cherchez une entreprise ou un artisan", "metiers-patrimoine-theme"),
+ ));
?>
+
+
+ $initialPosts->found_posts)); ?>
+
+
+ have_posts()) : $initialPosts->the_post(); ?>
+
+ ID) ?? null;
+
+ get_template_part(
+ 'template-components/artisans/card-artisans-search',
+ null,
+ array(
+ 'card_variant' => 'activite',
+ 'post_ID' => get_the_ID(),
+ 'post_title' => get_the_title(),
+ 'current_taxonomy' => "elementsbatiments",
+ 'post_date' => $post_date,
+ )
+ ); ?>
+
+
+
+
+
+
-