diff --git a/template-parts/components/post-card.php b/template-parts/components/cards/post-card.php similarity index 62% rename from template-parts/components/post-card.php rename to template-parts/components/cards/post-card.php index 5507795..1edc0da 100644 --- a/template-parts/components/post-card.php +++ b/template-parts/components/cards/post-card.php @@ -4,19 +4,24 @@ $current_post_type = $args['current_post_type'] ?? get_post_type(); $types_terms = get_the_terms($ID, 'type'); $type = isset($types_terms[0]) ? $types_terms[0] : null; $title = get_the_title($ID); +$showExcerpt = $args['show_excerpt'] ?? false; + $excerpt = get_the_excerpt($ID); $link = get_the_permalink($ID); $image = get_the_post_thumbnail_url($ID); $date = get_the_date('F Y', $ID); $authors = get_field('authors', $ID); +$editors = get_field('editors', $ID); $numerotation = get_post_meta($ID, 'post_numerotation', true); +$tags = get_the_terms($ID, 'etiquettes'); ?> -
\ No newline at end of file + \ No newline at end of file