-
-
Save laranz/841c1cf37656a83d45df6e2e70fc0770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'get_the_archive_title', 'custom_category' ); | |
function custom_category( $title ) { | |
if( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment