nathanayling
5/29/2018 - 2:59 PM

Remove Category Name from Category Archive

Remove the word 'Category' from the Category Archive page template in Wordpress

function remove_category_text_from_archive_title($title) {
    return is_category()?single_cat_title('', false):$title;
}
add_filter('get_the_archive_title', 'remove_category_text_from_archive_title');