Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'get_the_archive_title', 'artabr_remove_name_cat' );
- function artabr_remove_name_cat( $title ){
- if ( is_category() ) {
- $title = single_cat_title( '', false );
- } elseif ( is_tag() ) {
- $title = single_tag_title( '', false );
- }
- return $title;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement