Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blueprintmrk/d45d416d95ad6c6018e8 to your computer and use it in GitHub Desktop.
Save blueprintmrk/d45d416d95ad6c6018e8 to your computer and use it in GitHub Desktop.
<?php
add_action('wp_head','tribe_dont_index_single_events');
function tribe_dont_index_single_events() {
if ( is_singular() && get_post_type() == TribeEvents::POSTTYPE )
echo '<meta name="robots" content="noindex">';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment