Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a way to get the current forum #?

  • I’m working on some theme development for a bbpress installation, and it struck me that it would be really helpful if I could simply add to the #wrapper a class declaration like “forum-1” or the like that would identify the forum in a clear way for theming purposes.

    (I have a need to theme each forum separately to match product web sites.)

    Does anyone know if this is possible? I’ve spent a good amount of time digging through the functions, but I have to admit that I can’t figure it out and was wondering if anyone here had any ideas. I tried searching the forum to no avail.

Viewing 1 replies (of 1 total)

  • _ck_
    Participant

    @_ck_

    It’s very simple get_forum_id();

    <?php echo "<div id='forum-".get_forum_id()."'>"; ?>

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar