Re: Keep spiders out of forum categories?
<?php
/*
Plugin Name: noindex stuff
*/
add_action('bb_head', 'my_add_noindex_tag');
function my_add_noindex_tag() {
if( is_forum(3) ) {
echo '<meta name="robots" content="noindex" />';
}
else {
echo '<!-- please do index -->';
}
}
?>
I modified it a bit to see both conditions… but neither are showing up in my source. Any thoughts?
I did see it in the plugins control panel, and activate it.