Re: Discriminate content depending on BBPress or WP
Well, in this case I am calling the header file from wordpress on the bbpress pages. The only problem is that I have things in the bbpress header like
which create tons of problems when I put that code in the wp header file. I was able to load wp when bbpress loads, but it seems like the opposite would also be useful, to register bbpress when wp loads. I suppose through reverse engineering, I could figure that out on my own?! Otherwise, I would like to just be able to tell the page, “Hey, are you wordpress, then load this…otherwise, don’t load it. And if your BBPress, then load this, otherwise don’t load it”.
Currently I am also trying to specify which stylesheets to load. If it’s wp, I want the wp stylesheet, and if it’s bb, I want the bb stylesheet, and I don’t want the conflicts when both load.
1 – Does this make sense?
B – Is there a solution? and
4 – Am I overlooking a more obvious solution?