I used your code (https://github.com/sbrajesh/bp-list-users-in-dir-with-role/blob/master/functions.php), to create a user role directory, and it works well. Thank you to provide this code as a public code.
With your code, the plugin BP profile search (https://fr.wordpress.org/plugins/bp-profile-search/) identified user role directory.
But how can I modify this code (https://github.com/sbrajesh/bp-list-users-in-dir-with-role/blob/master/members/index.php) in order that list of user roles will be identified by BP search profile?
Finally, I want that BP search profile shows only some user roles and not the whole list.
Thanks for your help
Continued discussion here
You must be logged in to reply to this topic.