Check if we are under a certain category/forum
In the php-template displaying the forums, I want to check if the current forum/topic/… displayed is below a certain bbpress subforum/category.
The purpose of this is to show different wordpress menus depending on if the user is looking at the english part or the german part of the forums.
My question is: Is there a php-code to handle this?
if (we are under the german category) display german menu; else display english menu;
- You must be logged in to reply to this topic.