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; ?> +
\ No newline at end of file