From 36bad45e67bb40d1f120683edd0455b9077a1ff7 Mon Sep 17 00:00:00 2001 From: Nonimart Date: Wed, 24 Sep 2025 16:22:39 +0200 Subject: [PATCH] FEATURE Introducing new modification date system --- template-parts/articles/article-informations.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/template-parts/articles/article-informations.php b/template-parts/articles/article-informations.php index acb42e4..6f0b136 100644 --- a/template-parts/articles/article-informations.php +++ b/template-parts/articles/article-informations.php @@ -3,7 +3,10 @@ $revueID = $args['revueID']; $issue_number = get_field('issue_number', $revueID); $issue_parution_date = get_the_date('F Y', $revueID); -$issue_updated_date = get_the_modified_date('F Y', $revueID); +$issue_updated_date = get_post_meta(get_the_ID(), 'article_modification_date', true); +// Formater la date en utilisant la langue configurée dans WordPress +$issue_updated_date_formatted = $issue_updated_date ? date_i18n('F Y', strtotime($issue_updated_date)) : null; + $coordinations_authors = get_field('coordinations_authors', $revueID); ?> @@ -24,10 +27,10 @@ $coordinations_authors = get_field('coordinations_authors', $revueID); - +
Mise à jour
- +