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);