Last active
July 1, 2020 13:59
-
-
Save Pebblo/589488bd670d646a91326157d0c569a7 to your computer and use it in GitHub Desktop.
Example of how to change the EE taxonomy titles to 'Courses for {term}'.
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
<?php //Please do not include the opening PHP tag if you already have one. | |
function tw_ee_theme_ee_archive_taxonomy_title( $title ) { | |
if( is_tax( 'espresso_event_categories' )) { | |
return 'Courses for ' . single_term_title( '', false ); | |
} | |
return $title; | |
} | |
add_filter( 'get_the_archive_title', 'tw_ee_theme_ee_archive_taxonomy_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment