BuddyDev

Search

With BuddyPress Group Tabs Creator, You can overwrite the default BuddyPress group tab link if you need.

  • You can link BuddyPress group tab to any URL of the web.
  • Or you can create dynamic URL that points to another tab/sub tab or page on site site.

In order to override the default tab URL, you will need to enter the new URL while creating/modifying a tab.

Here is a screenshot of the setting. It is completely optional and you should only use it if you want the tab to act as a link(dynamic or absolute).

BuddyPress Group Tab Link Configuration

Example:- Linking tab to a link on web:-

While creating or modifying a tab, you will see a box for entering link URL as shown earlier. All we need to do is use the absolute URL in this box. Here are the screenshots showing how to link to google.

This is optional and if you don’t want to link to any special pages, you may avoid this.

Settings:-

BuddyPress Group Tab Link Configuration

Result:-

BuddyPress Group Tab Link Configuration

 

 

 

List of available dynamic URL tags:-

  • [displayed-group-url] – Dynamic url for the current BuddyPress group. For example, it will be like http://example.com/groups/some-awesome-group/.
  • [displayed-group-id] – Dynamic ID for the current BuddyPress group. For example, 32.
  • [logged-user-url] – Dynamic url for currently logged in user.
  • [logged-user-id] – Dynamic ID for currently logged in user.
  • [site-url] – Dynamic link to your sites home page. In case of multi-site, it points to the main site home page.
  • [blog-url] – Dynamic url to current blog. In case of normal WordPress site, [site-url] and [blog-url] are same. It occupies special meaning when used on multi-site.

Example:- If you want to link to http://example.com/groups/{dynamic_group_slug}/members/, you will use [displayed-group-url]members/

Go ahead and explore the possibilities.