Created
May 14, 2018 06:45
-
-
Save Steeru/2864f85e0a979528a6f8c3c2dd98ef79 to your computer and use it in GitHub Desktop.
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 travel_log_child_remove_cat_titles($title) { | |
if ( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} elseif ( is_tag() ) { | |
$title = single_tag_title( '', false ); | |
} elseif ( is_author() ) { | |
$title = '<span class="vcard">' . get_the_author() . '</span>' ; | |
} | |
return $title; | |
} | |
add_filter( 'get_the_archive_title', 'travel_log_child_remove_cat_titles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment