Filter by location

Hello,

I would like to know some suggestion for the following:

We would like to have some registration form when people (in this case coaches) put their information and adress. Those people should be part of one website, that is more like closed community just for coaches.

Adress is important because we would like to have feature that all visitors of other website of this multisite can filter those coaches by location and find one most close to them.

How we can do it? Do you have any suggestion?

Thank you

  • Nahid

    Hey Daniel !
    Hope you are having a great day!

    As for the closed community, I'd recommend using BuddyPress (for the community purposes) and Membership 2 Pro (for closing/protecting it from visitors/unwanted users).

    About the registration form, since the default registration form of Membership 2 doesn't support custom registration fields out of the box, you can use the Membership 2 BuddyPress integration and turn on the "Use BuddyPress Registration" page option. You can do that through your WordPress Dashboard->Membership 2->Add-ons. Here's a screenshot for reference:

    Then click 'Details...' on the add-on and enable "Use BuddyPress Registration". Here's another screenshot for reference:

    This will change the registration process so when someone goes to sign up, it first gives them your Membership 2 memberships list and once they select the membership, it takes them to the BuddyPress registration and will sign them up and log them in all in one action upon signup.

    Regarding the address of your coaches, you can then use a plugin like BP xProfile Location which should add location as an extended profile item in the registration and user profile(s). It should also be searchable and filterable with a BuddyPress search plugin like BP Profile Search (not tested).

    Hope this helps. Let me know if you need any further assistance regarding this. Thanks!

    Best,
    Nahid

  • Daniel

    I followed your instructions and made the form as I want it to be, but now when I want to register as a test new member I get redirected to the registration page. You can try it here: https://www.p3tar.com/memberships/
    So we are stuck in here can you please help us?
    In the end we would like to achieve user filtering solution exactley like this: http://rehub.wpsoul.com/extended-locator/ for every person who gets signed up!

  • Dimitris

    Hello there Daniel,

    hope you're doing good today! :slight_smile:

    I can see that Membership 2 Pro is deactivated in your website. In order to make this more clear, after activating the plugin and setting the addon settings as my colleague Nahid mentioned above, you should also set the Membership and BuddyPress registration pages, not to be the same page.
    So, you set a registration page in here
    https://monosnap.com/file/lOU8u56bMcgvR6BXEawyKZlxqhRxRP
    in which page you insert the default registration shortcodes

    [ms-note type="info"]We have the following subscriptions available for our site. To join, simply click on the Sign Up button and then complete the registration details.[/ms-note]
    [ms-membership-signup]

    Then select another page as registration page for BuddyPress (doesn't matter which, or you don't have to insert anything in that one)
    https://monosnap.com/file/4AA9nfpiyjCzol2eLIaZy8rDF8eFJW

    You should then use the Membership registration page (first one). In first page load you will see your membership plans, after selecting one of these, page will refresh and you will get the BuddyPress registration form (still being in the same URL).

    If this still troubles you, please activate our plugin again and let us know here in your next reply, so we could set this up for you. :slight_smile:

    As for filtering, this will require some custom work most probably, as I don't know of any plugin that could assist you with filtering custom fields in members page. For any kind of custom work, please advise our jobs board, Jobs&Pros. Ref: https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-1

    Warm regards,
    Dimitris