Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created June 3, 2020 13:31
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 lynt-smitka/e88b54c3f6c65a94729f2633df7c74aa to your computer and use it in GitHub Desktop.
Save lynt-smitka/e88b54c3f6c65a94729f2633df7c74aa to your computer and use it in GitHub Desktop.
<?php
/*
Plugin name: Moje funkce
*/
add_filter( 'get_the_archive_title', function ( $title ) {
if( is_category() ) {
$title = single_cat_title( '', false );
}
if( 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