FEATURE Handling a page_has_subtile function to accelerate reading and imporove clarity
This commit is contained in:
parent
4201c8d86b
commit
3bf452a5f2
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user