Skip to:
Content
Pages
Categories
Search
Top
Bottom

Conditional tags like “in_category”


  • pipipi07
    Participant

    @pipipi07

    I’m sorry if it’s a rudimentary question.

    For example,
    In the forum: music, the topics “Rock”, “Pops” and “Classic” are posted.
    In the forum: movie, the topics “Comedy”, “Action” and “Horror” are posted.
    In this case, how can the conditional branch “display A for single topics belonging to forum: music (that is,”rock”,”pops”,”classic”pages) be realized?

    In other words, I want to do the same as “in_category” in wordpress.

    I thought too hard and lost my mind! help!

Viewing 1 replies (of 1 total)

  • pipipi07
    Participant

    @pipipi07

    I found the solution!

    if ( bbp_get_topic_forum_id() === $forum_id )
    This is the branch!

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