Created
November 16, 2018 12:27
-
-
Save davoraltman/ab5e02a258259b4ef680a621e2320e56 to your computer and use it in GitHub Desktop.
Hide Category: from category pages
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
function prefix_category_title( $title ) { | |
if ( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} | |
return $title; | |
} | |
add_filter( 'get_the_archive_title', 'prefix_category_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment