From 3bf452a5f27aa7050a1135a9090ea7dfcddceab1 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 24 Feb 2026 15:09:51 +0100 Subject: [PATCH] FEATURE Handling a page_has_subtile function to accelerate reading and imporove clarity --- includes/utilities.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/utilities.php b/includes/utilities.php index 9cc87bf..f9acee8 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -46,7 +46,11 @@ function get_archive_page_icon_html($post_type) } } - +function page_has_subtitle($page_id) +{ + $has_page_subtitle = get_field('page_subtitle', $page_id) ? true : false; + return $has_page_subtitle; +} function get_archive_page_subtitle_html($post_type) { switch ($post_type) {