Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Getting bbPress and WordPress to talk to each other

I have no idea how the bb environment can be detected, but I think I know why your $forumpage hack didn’t work; the WP headers are in different files and such.

When setting $forumpage, try something like this:

global $forumpage = true;

When checking if $forumpage is true, do it something like this:

global $forumpage;
if( $forumpage = true )
{
...
}

If you tell PHP that you want the global variable $forumpage it should work.

Not too confident about this, but that should tell PHP to make them global (ie. available everywhere). Otherwise you’ll probably be calling different variables called $forumpage.

Skip to toolbar