Skip to:
Content
Pages
Categories
Search
Top
Bottom

Branching out by forum ID in bbpress

  • @iconuser

    Participant

    Nice to meet you.
    I am currently creating a bulletin board service and would like to display the text formatting in the topic creation form, and I am using the URL below as a reference.
    https://bbp-customize.com/topic-form-template/

    In this article, you say “The above code sets up a common format for all the forums, but you can also set up a separate format for each forum by splitting it up by forum ID”, but I don’t know how to split it up for each forum ID.

    I’ve looked it up, but it doesn’t work and I’m stuck.

    Specifically, I would like to know how to display the text formatting only for forum ID:2 when there are forums with forum ID:1 and forum ID:2.

    Sorry this is a very rudimentary question, thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @iconuser

    Participant

    Self-resolved.
    I used bbp_is_single_forum() to specify a forum with forum ID:2 by using is_single( 2 ) instead of all forums.

    @robin-w

    Moderator

    great – glad you are fixed

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