Forums
-
- Forum
- Posts
-
- Installation
- 28,423
- Troubleshooting
- 62,490
- Themes
- 10,427
- Plugins
- 15,336
- Requests & Feedback
- 14,959
- Showcase
- 3,256
-
is_forum() doesn’t take any arguments, so I believe you’d have to use the global var $forum, like so:
<?php
/*
Plugin Name: noindex stuff
*/
add_action('bb_head', 'my_add_noindex_tag');
function my_add_noindex_tag() {
global $forum;
if($forum->forum_id == 3) {
echo '<meta name="robots" content="noindex" />';
}
else {
echo '<!-- please do index -->';
}
}
?>