FEATURE Handling description when supported

This commit is contained in:
Antoine M 2026-04-08 16:34:50 +02:00
parent 10c65f0a30
commit 0355a1e9c6

View File

@ -32,6 +32,9 @@ $publication_directors = get_field('publication_directors', $ID);
$numerotation = get_post_meta($ID, 'post_numerotation', true);
$tags = get_the_terms($ID, 'etiquettes');
$description = get_field('description', $ID);
?>
<a class="post-card post-card--<?php echo $current_post_type . ' ' . ($has_post_thumbnail ? 'post-card--has-thumbnail' : ''); ?> card" href="<?php echo esc_url($link); ?>" target="<?php echo $target; ?>">
@ -53,6 +56,9 @@ $tags = get_the_terms($ID, 'etiquettes');
<?php if ($showExcerpt) : ?>
<div class="card__excerpt"><?php echo $excerpt; ?></div>
<?php endif; ?>
<?php if ($description) : ?>
<div class="card__description"><?php echo $description; ?></div>
<?php endif; ?>
</div>
<div class="card__details">