diff --git a/template-parts/components/cards/post-card.php b/template-parts/components/cards/post-card.php index d665078..5fe445d 100644 --- a/template-parts/components/cards/post-card.php +++ b/template-parts/components/cards/post-card.php @@ -4,6 +4,8 @@ $current_post_type = $args['current_post_type'] ?? get_post_type(); $title = get_the_title($ID); $showExcerpt = $args['show_excerpt'] ?? false; +$showTags = $args['showTags'] ?? true; + $excerpt = get_the_excerpt($ID); $link = get_the_permalink($ID); @@ -13,8 +15,14 @@ $thumbnail_url = get_the_post_thumbnail_url($ID) ?? null; $date = get_the_date('F Y', $ID); $authors = get_field('authors', $ID); +$has_main_author = get_field('has_main_author', $ID); +$main_author = get_field('main_author', $ID); $editors = get_field('editors', $ID); +$has_publication_direction = get_field('has_publication_direction', $ID); +$publication_directors = get_field('publication_directors', $ID); + + $numerotation = get_post_meta($ID, 'post_numerotation', true); $tags = get_the_terms($ID, 'etiquettes'); @@ -44,12 +52,21 @@ $tags = get_the_terms($ID, 'etiquettes');
@@ -58,7 +75,7 @@ $tags = get_the_terms($ID, 'etiquettes'); - +