Created
March 3, 2012 06:26
-
-
Save jkudish/1964698 to your computer and use it in GitHub Desktop.
noindex single tribe_events
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 | |
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
@jo-snips Good point, now fixed!