From 3ef493e1186e2a395a38af9b92be76de603670cb Mon Sep 17 00:00:00 2001 From: Nonimart Date: Wed, 25 Jun 2025 12:28:43 +0200 Subject: [PATCH] FEATURE Completion of main behaviours --- .../authors/authors-last-publications.php | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/template-parts/authors/authors-last-publications.php b/template-parts/authors/authors-last-publications.php index 07063f4..3a71eae 100644 --- a/template-parts/authors/authors-last-publications.php +++ b/template-parts/authors/authors-last-publications.php @@ -8,8 +8,6 @@ if ($isArticle) { } else { $authors = getRevueAuthors($postId); } - - if (empty($authors)) return; $authorsLastPosts = get_posts(array( @@ -19,15 +17,23 @@ $authorsLastPosts = get_posts(array( 'orderby' => 'date', 'order' => 'DESC', )); + +if (empty($authorsLastPosts)) return; ?> +
+ +

Ses dernières publications

+ +

Leurs dernières publications

+ - - - - $post->ID, - )); ?> - + + $post->ID, + 'showAuthors' => true, + )); ?> + +
\ No newline at end of file