Filter members by custom fields
This is my first time with BP and my very first post in the BP forums. I have a query related to the members-loop.
We have grouped our bp members role-wise. They choose a role from a set of four predefined roles while signing up (it’s a custom profile field).
I have provided 4 tabs for 4 roles on my members page and clicking on a particular tab should only show the members belonging to THAT role. How can this elegantly be achieved with BP 1.1? Is there any template tag available?
I basically want to collect the members-array that is returned by bp_site_members() and further filter it by ‘role’.
I suppose I can hack the core, or maybe add my own function in bp-custom.php file to retrieve the members by whatever clause I want or maybe there is already a way in BP of doing this that I’m just not aware of.
Not sure, if this is much simpler in logic than in my head right now.
Any help much appreciated
You must be logged in to reply to this topic.