Do you know a way to see of the member page by distance without use a filter like something the code below? I have activated the field with google api.
<?php if ( bp_has_members() ) : ?>
<?php while ( bp_members() ) : bp_the_member(); ?>
$some_field = xprofile_get_field_data( ‘Some Field’, bp_get_member_user_id() );
thanks very much!
- Brajesh Singh on November 13, 2019 at 6:52 pm #26442
I am sorry but I am unable to understand the question.
Please help me understand it better.
Sure I am making a web that a person answer questions and with his answer he automatically registers.
Then I redirect it to show the closest members that appear geographically and similar xprofile It would be like a suggestion of friendship by location and xprofile.
i hope you can understand me.
- Brajesh Singh on November 14, 2019 at 8:46 pm #26460
Hi Jennifer ,
I am sorry, there are no direct ways to do it.
you will most probably need a plugin that captures geo location for each user and then use distance search based on current’s user’s location.
I do not see a direct way available.
There are plugins for xprofile location, but they will not capture it automatically, A user will need to specify it.
- Brajesh Singh on November 18, 2019 at 6:41 am #26507
Thank you. I am looking forward to it.
All the best.
Hi i used the plugin bp-search with this code:
- Brajesh Singh on November 21, 2019 at 5:26 pm #26655
Thank you for sharing. That’s good to know.
The topic ‘ [Resolved] Distance of members’ is closed to new replies.