If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
i am trying to modify the avia_title function:
if(is_post_type_archive()) $title = post_type_archive_title();
this displays the pt archive title but not as $output .= ‘<h1 class=”main-title”>’.$title.'</h1>’;
$post_type_obj = get_queried_object();
$title = apply_filters(‘post_type_archive_title’, $post_type_obj->labels->name );
The topic ‘function avia_title for custom post type archive’ is closed to new replies.