Skip to content

Instantly share code, notes, and snippets.

@chihirokaasan
Last active November 5, 2015 06:45
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 chihirokaasan/a9baf26cf844e7f10405 to your computer and use it in GitHub Desktop.
Save chihirokaasan/a9baf26cf844e7f10405 to your computer and use it in GitHub Desktop.
add_filter( 'get_the_archive_title', function ($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
}
return $title;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment