Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active July 1, 2020 13:59
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 Pebblo/589488bd670d646a91326157d0c569a7 to your computer and use it in GitHub Desktop.
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}'.
<?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