From 23edc2b1f4dd584e77c6381a6bc078620e7e8a65 Mon Sep 17 00:00:00 2001 From: Nonimart Date: Thu, 21 Aug 2025 16:18:18 +0200 Subject: [PATCH] FEATURE Hiding authors and references if no values encoded --- template-parts/articles/article-toolbar.php | 28 ++++++++++++++------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/template-parts/articles/article-toolbar.php b/template-parts/articles/article-toolbar.php index df85178..34ce96e 100644 --- a/template-parts/articles/article-toolbar.php +++ b/template-parts/articles/article-toolbar.php @@ -1,4 +1,11 @@ 0; +$authors = get_field('authors', $id); +$hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0; + + ?> @@ -8,15 +15,18 @@ Article - - + + + + + +