Skip to content

Instantly share code, notes, and snippets.

@theJasonJones
Created December 2, 2016 21:21
Show Gist options
  • Save theJasonJones/037d5e4e76691685dbe4db2fb8294eec to your computer and use it in GitHub Desktop.
Save theJasonJones/037d5e4e76691685dbe4db2fb8294eec to your computer and use it in GitHub Desktop.
f you want to set the main events page title to appear similar to the titles listed on the rest of the site you can use this function.
add_filter('wp_title', 'normal_tribe_events_title');
function normal_tribe_events_title($title) {
if( get_post_type() == 'tribe_events' ){
$title = get_bloginfo('name');
return $title;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment