Title: Display breadcrumbs
Last modified: August 21, 2016

---

# Display breadcrumbs

 *  [erezwe](https://wordpress.org/support/users/erezwe/)
 * (@erezwe)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-breadcrumbs/)
 * I’m trying to display breadcrumb for a subgroup but can’t seem to figure this
   one up.
 * Here is a link to a subgroup for example: [http://www.cmecompete.com/communities/see-walk-cities/city-of-americus-2087736576/](http://www.cmecompete.com/communities/see-walk-cities/city-of-americus-2087736576/)
 * If you check the html you’ll see under the group name there is
    `<a title="" 
   href="/communities/"></a>`
 * I used `<?php bp_group_hierarchy_breadcrumbs(); ?>` but it does not show any 
   breadcrumbs just this empty link to communities (which is basically groups)
 * Anyone can help me and let me know how can I get this to work outside the loop.
 * Actually all I’m trying to get is a link to the parent group so if anyone has
   a better idea feel free to share.
 * Thanks much.
 * [http://wordpress.org/plugins/bp-group-hierarchy/](http://wordpress.org/plugins/bp-group-hierarchy/)

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

 *  Plugin Author [David Dean](https://wordpress.org/support/users/ddean/)
 * (@ddean)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/display-breadcrumbs/#post-4023490)
 * Hi erezwe –
 * If you want a link to the parent group and you’re outside the loop, you’ll need
   to instantiate the group and then its parent.
 * It’s not great, but these functions were not really meant to be used outside 
   the loop. Here’s some sample code:
 *     ```
       $group = new BP_Groups_Hierarchy( $group_id );
       $parent_group = groups_get_group( array( 'group_id' => $group->parent_id ) );
       echo bp_get_group_permalink( $parent_group );
       ```
   
 * Let me know how this works for you!
 * – David
 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/display-breadcrumbs/#post-4023524)
 * +1
 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/display-breadcrumbs/#post-4023525)
 * There is a possible solution at the end of this post:
    [http://wordpress.org/support/topic/plugin-bp-group-hierarchy-adding-back-button-to-widget-group-navigator?replies=6](http://wordpress.org/support/topic/plugin-bp-group-hierarchy-adding-back-button-to-widget-group-navigator?replies=6)
 * haven’t tried it yet…
 * Cheers
 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/display-breadcrumbs/#post-4023526)
 * [http://wordpress.org/plugins/breadcrumbs-everywhere/](http://wordpress.org/plugins/breadcrumbs-everywhere/)

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

The topic ‘Display breadcrumbs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-group-hierarchy.svg)
 * [BP Group Hierarchy](https://wordpress.org/plugins/bp-group-hierarchy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-group-hierarchy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-group-hierarchy/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-group-hierarchy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-group-hierarchy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-group-hierarchy/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [3×7](https://wordpress.org/support/users/3x7/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/display-breadcrumbs/#post-4023526)
 * Status: not resolved