From 4264f17a595907046824ec6238a0465447725cbf Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 24 Mar 2026 15:28:14 +0100 Subject: [PATCH] FEATURE enhancing post authors main authors and director publications handling --- .../components/posts/post-header.php | 46 +++++++++++++------ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/template-parts/components/posts/post-header.php b/template-parts/components/posts/post-header.php index 3513a8a..f371e43 100644 --- a/template-parts/components/posts/post-header.php +++ b/template-parts/components/posts/post-header.php @@ -6,10 +6,12 @@ $postTitle = get_the_title($post_id); $hasNumerotation = hasPostTypeNumerotation($post_id); $hasThumbnail = has_post_thumbnail(); -$authors = get_field('authors', $ID); -$has_main_author = get_field('has_main_author', $ID); -$main_author = get_field('main_author', $ID); +$authors = get_field('authors', $post_id); +$has_main_author = get_field('has_main_author', $post_id); +$main_author = get_field('main_author', $post_id); +$has_publication_direction = get_field('has_publication_direction', $post_id); +$publication_directors = get_field('publication_directors', $post_id); $post_date_info_label = $args['post_date_info_label'] ?? 'Parution'; $thumbnail_position = $args['thumbnail_position'] ?? 'left'; @@ -54,15 +56,33 @@ $citeReference = get_field('cite_reference', $post_id);

- - - post_title; ?> - - 0) : ?> - - post_title; ?> - - + +
@@ -71,7 +91,7 @@ $citeReference = get_field('cite_reference', $post_id);