hadnlign thumbnail differently
This commit is contained in:
parent
3d1d85834e
commit
1abe6ca42f
|
|
@ -234,17 +234,15 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
// write_log($initialPosts);
|
// write_log($initialPosts);
|
||||||
|
|
||||||
foreach ($initialPosts->posts as $key => $artisanPost) {
|
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;
|
$post_date = get_the_date('j.m.Y', $artisanPost->ID) ?? null;
|
||||||
|
|
||||||
get_template_part(
|
get_template_part(
|
||||||
'template-components/artisans/card-artisans',
|
'template-components/artisans/card-artisans-search',
|
||||||
null,
|
null,
|
||||||
array(
|
array(
|
||||||
'card_variant' => 'activite',
|
'card_variant' => 'activite',
|
||||||
'post_ID' => $artisanPost->ID,
|
'post_ID' => $artisanPost->ID,
|
||||||
'post_title' => get_the_title($artisanPost->ID),
|
'post_title' => get_the_title($artisanPost->ID),
|
||||||
'post_thumbnail' => $post_thumbnail,
|
|
||||||
'current_taxonomy' => "elementsbatiments",
|
'current_taxonomy' => "elementsbatiments",
|
||||||
'post_date' => $post_date,
|
'post_date' => $post_date,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user