Created
September 12, 2017 21:09
-
-
Save anonymous/06dbd945fa11991d7af1a8d6800f0f87 to your computer and use it in GitHub Desktop.
Remove Archives: prefix in archives title
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', 'tu_archive_title_remove_prefix' ); | |
function tu_archive_title_remove_prefix( $title ) { | |
if ( is_post_type_archive() ) { | |
$title = post_type_archive_title( '', false ); | |
} | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment