ayumee
9/22/2017 - 6:10 PM

Remove "Category" and "Tag" from page title on archive page

WordPress archive template.

add_filter( 'get_the_archive_title', function ($title) {
    if ( is_category() ) {
            $title = single_cat_title( '', false );
        } elseif ( is_tag() ) {
            $title = single_tag_title( '', false );
        }
    return $title;
});