Added a filter in the member directory.
-
Hello, I added a drop down with as option the groups created by the users, my goal is when you click on a specific group, it displays the members of the group, cordially.
Do you know how I can do that please?
Screen :
code :
function add_dropdown_filter_society() { ?> <div class="flex bp-secondary-header align-items-center"> <div class="push-right flex"> <select id="groups-order-by" data-bp-filter="members"> <option value="active">Société</option> <?php $groups = groups_get_groups(); foreach( $groups["groups"] as $group ) { ?> <option value="society"> <?php echo $group->name; ?> </option> <?php } ?> </select> </div> </div> <?php } add_action('bp_before_directory_members_content', 'add_dropdown_filter_society',10,3);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.