Skip to content

Instantly share code, notes, and snippets.

@davoraltman
Created November 16, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davoraltman/ab5e02a258259b4ef680a621e2320e56 to your computer and use it in GitHub Desktop.
Save davoraltman/ab5e02a258259b4ef680a621e2320e56 to your computer and use it in GitHub Desktop.
Hide Category: from category pages
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