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