I am sorry but this is beyond what I can assist you in our support currently. I am having trouble modifying due to language on the site(Using google translator there).
It is doable. The better approach will be to use member types as gender and then filter bp_has_members args. In your case you are using xprofile field, this will work too but it won’t be as efficient or scalable as member type based solution.
I will assist with you in next 2-3 days with the code for filtering out opposite gender member though.
I am sorry for the delayed reply.
It seems you are using the GeoMyWP or geodirectory plugin. The plugin overrides member directory query. So my effort will go in vain.
Since you are using Kleo theme and the people behind Kleo do support Geodirectory, I will suggest to ask them for the help.
You must be logged in to reply to this topic.