php condition to detect that we are in the forum
I am building a multilingual (WPML plugin) website with a Bbpress forum inside. The forum is not multilingual and the fact that bbpress uses page.php to generate its pages causes the flag icons to display. They are not needed and they point to nowhere …
So I have to suppress the flags icons in the header when the page.php is displaying a forum.
But how can I test (in php) that I am in the forum ?
Thanks for any clue.
You must be logged in to reply to this topic.