This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Xprofile Fields premium extension please open a new premium support ticket.
[Resolved]Only display BP members with a particular xprofile field?
You will need to run function ( using the filter ) that will do to things:
1) Get the IDs of all members with the xprofile “member_approved” into an array.
2) Excluded this array of IDs from the members search query by modifying its WHERE clause.
allows you to modify the members SQL query created by GEO my WP before the query is executed.
the filter is in geo-my-wp/plugins/friends/includes/gmw-fl-search-funcitons.php around line 450. You can see the query happens just before above it.
And as i mentioned above What I would probably do is get the IDs of all members with the xprofile “member_approved” into an array and exclude the array of IDs from the members search query by modifying its WHERE clause.