Filter users by subgroup or extendedfield
-
Hi,
I was wondering if there is a way to have subgroups, for example, i have a group called food and inside i want more groups like meat,vegetables,etc. Its like to category and subcategory. Or maybe a way to filter users by extended fields within group. For example:<?php if ( bp_is_groups_component() && ‘food’ == bp_current_item() ) : ?>
<?php if (extended_field_value=meat): ?>
<?php while ( bp_group_members() ) : bp_group_the_member(); ?>
display user inside a grout with that extendede field value<?php endwhile; ?>
<?php endif ;?>
<?php endif ;?>What is wrong? What is missing?
Thanks in advance
- The topic ‘Filter users by subgroup or extendedfield’ is closed to new replies.