Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_is_forum (bbpress 2.0)


  • caneblu
    Participant

    @caneblu

    Hi, trying to integrate in my template BBP, but i need to made some special changes in sidebar.php when the user are in forum’s.

    to initial check i write in the sidebar.php

    <?php if( bbp_is_forum() ) { echo "iam_forum";

    }

    ?>

    but the echo is visible in every page/post not only in the forum… what’s wrong?

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

  • John Conners
    Participant

    @johnconners

    Sounds like you want to check something like this:

    <?php if( bbp_is_forum() || bbp_is_topic() || bbp_is_reply() ) {
    echo "iam_forum";
    }
    ?>


    caneblu
    Participant

    @caneblu

    Hi John, thank you for reply.

    No changes, “iam_forum” still appear on page and post of blog.

    The integration of custom theme (post bbPress 2.0 – Theme Compatibility) seems working fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar