Simon99 (@simon99)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @simon99

    Member

    Using latest trunk code, but bb_head works fine in combo with add_action here.

    @simon99

    Member

    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 -->';
    }
    }
    ?>

    @simon99

    Member

    Aha, glad I spent an extra couple of minutes searching, as I was about to ask this same question. bbpress looks great btw, I really like the slimline approach. :)

Viewing 3 replies - 1 through 3 (of 3 total)