Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get forum id from name


  • Sceko
    Participant

    @sceko

    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

    @robin-w

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


    Sceko
    Participant

    @sceko

    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

    @sceko

    I finish this like

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

    sterrlam
    Participant

    @sterrlam

    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