Skip to:
Content
Pages
Categories
Search
Top
Bottom

Echo Group Name?


  • thecorkboard
    Participant

    @thecorkboard

    Hey there-
    I need to put the group name on the group’s home page outside of the group-header.php file and into the groups/home.php file in a custom title div.

    Anytime I try ” I get nothing.

    Ideas?

    Thanks,
    ~Kyle~

Viewing 3 replies - 1 through 3 (of 3 total)

  • thecorkboard
    Participant

    @thecorkboard

    is what I tried to post there…


    thecorkboard
    Participant

    @thecorkboard

    bp_group_name()

    Make sure that you’ve called bp_has_groups() and bp_the_group(), otherwise all related template tags won’t do anything. See the BuddyPress Codex page on The Groups Loop for more.

    If you want to grab the name of a single group by ID try this:

    `
    $group = new BP_Groups_Group($myGroupID, true);
    echo $group->name;
    `

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Echo Group Name?’ is closed to new replies.
Skip to toolbar