[groups-listing]
[bp-groups-list]
extended
”default”
avatar-list
Weekend 1tst
First Name Middle Name Last Name Email Phone Group Studio Studio Address Studio Address 2 City Website
Plugin – BP Profile Shortcodes Extra
Displays a list of group members.
Use of either the group_id or slug parameters is mandatory.
Can display simple list (option=”list”), a grid of group avatars ( option=”avatar-grid” ) or a linked list with avatars ( option=”avatar-list” ).
per_page=”20″ sets the number of members to display (default 20).
includes options count of all group members with a link to the group members page ( display_count=”yes” / “no” ).
s_title=”default”, s_title adds a title of your choice in an h4 tag, entering default will include the groups name in the title ( ie. “Members of Groupname” etc.).
Accepts Group_id=””, slug, alt, before, after, height, width, class, s_title, per_page and display_count as inputs.
if no group_id or slug is specified, the shortcode will try to pick up the current group id from BuddyPress, but this means it must be used on a BuddyPress Group page.
For the avatar-list option, content_1_field, content_2_field and content_3_field allow additional content from profile fields to be added under the members name.
So content_1_field=”Date of Birth” would display one profile field and content_2_field and content_3_field can be used for others.
**************
[bp-groups-list max=500]
[bp-groups-list]
Usage:-
Display 10 recently active members
[bp-groups-list max=10]
Display 10 recent active members with avatar size 64px
[bp-groups-list max=10 avatar_size=64]
Options
display
(string) (optional) The list display type. If not included it will display the users as list. You can use the following options to use specific display types:
list :- show as an unordered list
links :- show as list of links.
extended:- use the theme’s groups loop layout.
per_page
(int) (optional) How many items to display. Default is 20
include
(string) (optional) Comma separated list of group ids to include in the list.
exclude
(string) (optional) Comma separated list of numeric group ids to exclude from the list.
user_id
(int) (optional) If you want to display groups of a user, specify the user id.
group_type
(string) (optional) Comma separated list of one or more group types to restrict the list to.
group_type__not_in
(string) (optional) Comma separated list of group types which will not be included in the list.
meta_key
(string) (optional) Filter the list by specifying group meta key.
meta_value
(mixed) (optional) Filter the list by using meta key and value. Meta key must be specified to use this option.
avatar_size
(int) (optional) Size of avatar to display in case of the display list, links. Defaults to 32.