From 758ed2156d5a6ba63b4028ced1b6a1ec982330d5 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 13 Apr 2026 17:25:32 +0200 Subject: [PATCH] FEATURE handling birth daeath date --- resources/css/components/post-card.css | 8 ++++++++ template-parts/components/cards/post-card.php | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/resources/css/components/post-card.css b/resources/css/components/post-card.css index 6b2b675..b05442c 100644 --- a/resources/css/components/post-card.css +++ b/resources/css/components/post-card.css @@ -59,6 +59,14 @@ .card__description { @apply pb-5; } + + .card__birth-death-date { + @apply text-primary font-bold mb-4; + } + .card__title:has(+ .card__birth-death-date) { + @apply mb-4; + } + .card__details { @apply flex flex-col gap-3; diff --git a/template-parts/components/cards/post-card.php b/template-parts/components/cards/post-card.php index eaa5b66..49676db 100644 --- a/template-parts/components/cards/post-card.php +++ b/template-parts/components/cards/post-card.php @@ -33,6 +33,7 @@ $numerotation = get_post_meta($ID, 'post_numerotation', true); $tags = get_the_terms($ID, 'etiquettes'); $description = get_field('description', $ID); +$birth_death_date = get_field('birth_death_date', $ID); ?> @@ -56,6 +57,9 @@ $description = get_field('description', $ID);
+ +
+