Skip to content

Instantly share code, notes, and snippets.

@jo-snips
Created July 9, 2013 23:29
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 jo-snips/5962229 to your computer and use it in GitHub Desktop.
Save jo-snips/5962229 to your computer and use it in GitHub Desktop.
The Events Calendar - Fix Page Not Found Title
<?php
add_action('template_include', 'avoid_404_event_titles', 1);
function avoid_404_event_titles() {
global $wp_query;
if (property_exists($wp_query, 'tribe_is_event') && $wp_query->tribe_is_event and $wp_query->is_404)
$wp_query->is_404 = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment