Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get forum id from name

  • @sceko

    Participant

    Did posible use some diferent like this

    <?php if (bbp_get_topic_forum_id() == bbp_get_forum_id('3263')) : ?>

    this show category name for topick from number did posible use letter and from etc category general?

    This work fine http://prntscr.com/73ah8d but u wont use letter not number

Viewing 4 replies - 1 through 4 (of 4 total)
  • @robin-w

    Moderator

    Apologies, but can you try stating this question again, I don’t understand what you are asking.

    @sceko

    Participant

    i use this

    <?php if (bbp_get_topic_forum_id() == bbp_get_forum_id('3263')) : ?>
    <?php printf( __( '<a class="%3$s" href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ), get_option('white_boja_1') ); ?>
    <?php endif; ?>

    did posible use somting other not bbp_get_forum_id(‘3263’)` category search from id
    i wont find from category name? wont use etc like bbp_get_forum_id(‘general’)

    find topick title from category title not from id.

    @sceko

    Participant

    I finish this like

    <?php if (bbp_get_topic_forum_title() == get_option('white_kategorija_1')) : ?> 
    

    @sterrlam

    Participant

    That’s look correct!

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