Created
May 21, 2012 18:09
-
-
Save PaulHughes01/2763669 to your computer and use it in GitHub Desktop.
Don't index Tribe day views
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 | |
if (class_exists( 'TribeEvents' ) ) | |
add_action('wp_head','tribe_dont_index_day_views'); | |
function tribe_dont_index_day_views() { | |
$tribe_ecp = TribeEvents::instance(); | |
if( $tribe_ecp->displaying == 'day' ) | |
echo '<meta name="robots" content="noindex">'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment