Skip to:
Content
Pages
Categories
Search
Top
Bottom

bug ? groups_get_groupmeta( $bp->groups->current_group->id, 'forum_id' )


  • Sven Lehnert
    Participant

    @svenl77

    if I’m in a forum topic.

    groups_get_groupmeta( $bp->groups->current_group->id, 'forum_id' )

    give me back the id of the most recently commented-in topic thread, not the one currently being viewed!

    is it a bug?

Viewing 4 replies - 1 through 4 (of 4 total)
  • that statement above will only return the forum_id used (to match up the group to the bbpress forum_id)


    Sven Lehnert
    Participant

    @svenl77

    Thanks etiviti (rich!),

    I’m not in the loop, I need it in the header.

    Thats what I tried:

    $forum_template = new BP_Forums_Template_Forum( 'newest', groups_get_groupmeta( $bp->$current_component->$current->id, 'forum_id' ), false, 1, 1, 1, 'all', false );

    Is there a way to get the forum topic by slug?

    I can get the forum topic slug from:

    $bp->action_variables[1];

    bp_forums_get_topic_id_from_slug


    Sven Lehnert
    Participant

    @svenl77

    Thanks a lot :)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bug ? groups_get_groupmeta( $bp->groups->current_group->id, 'forum_id' )’ is closed to new replies.
Skip to toolbar