FEATURE Handling a page_has_subtile function to accelerate reading and imporove clarity

This commit is contained in:
Antoine M 2026-02-24 15:09:51 +01:00
parent 4201c8d86b
commit 3bf452a5f2

View File

@ -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) {