Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Keep spiders out of forum categories?

What forum categories?

You want a plugin like this:

<?php
/*
Plugin Name: noindex stuff
*/

add_action('bb_head', 'my_add_noindex_tag');
function my_add_noindex_tag() {
if( is_forum_category() )
echo '<meta name="robots" content="noindex" />';
}
?>

That’s off the top of my head, so it may not work without some modification, but that’s what I think the structure needs to be. You’ll need a different conditional tag than is_forum_category(), probably is_forum() if you just wanted to not index forum pages.

Skip to toolbar