WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I check if I am on a forum page or forum post inside my theme. I am using the bbpress plugin (not standalone bbpress). There should be some conditional like is_bbpress() or something?

share|improve this question

Indeed, there is a function named is_bbpress(). Use the RC1 version, it was introduced in r3344.

share|improve this answer
I have the same question and when I try this, I get an error that says is_bbpress() is undefined. – user7562 Aug 2 '11 at 20:37
Because that function doesn't exist in beta, it was added later on – Ashfame Aug 2 '11 at 21:41

This page explains the is_bbpress() function. http://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template

It also details another way which involves creating a new template which matches one of the key names for example forum.php. Than all forum pages will be loaded with that template rather than page.php, meaning you don't have to use is_bbpress() to test if it's a forum page anymore.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.