Auto Geolocate for Search Near

This topic contains 17 replies, has 3 voices, and was last updated by  Guust 9 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #17916

    Kenny Eliason
    Expired Member
    Post count: 54

    Hey there! Tried finding the answer to this question in the forum, but had a had time combing through the results. So I apologize in advance if it’s in there somewhere. Trying to geo-locate people for the search near box. I noticed your demo site does that. How does one turn that feature on?

    Thanks!

    #17918

    Guust
    Moderator
    Post count: 29970

    Not sure I am understanding.
    To geo-locate your visitors, install and activate the GeoDir Share Location plugin available from your download area.
    That however has nothing to do with the Search Near function.

    Did this help?

    #17952

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Kenny, Guust is right, the near box does not geolocate you at the moment but it will geolocate any location u put in. However i can tell you that this feature is being worked on and is 50% complete so it won’t be too long before it is released.

    Thanks,

    Stiofan

    #17981

    Kenny Eliason
    Expired Member
    Post count: 54

    Awesome on both fronts. Thanks Guust and Stiofan! So what does the GeoDir Share Location plugin do at this point? I mean, I realize it geolocates the visitor… just wondering how that incorporates into the flow right now. Thanks!

    #18004

    Guust
    Moderator
    Post count: 29970

    The GeoDir Share Location plugin indeed locates the visitor, then checks your database to see what location is closest to them, and then serves that page.

    For example, if I am in New York, and you only have a listing in Las Vegas and a listing in Los Angeles, then your site will take me the Las Vegas page because that is closest to my location.

    #18008

    Kenny Eliason
    Expired Member
    Post count: 54

    That’s perfect. Just what I was needing. And the default search is always radius search, unless otherwise specified, right?

    I guess it might be a little easier to explain what I’m trying to accomplish. On this dev site, musclecars.wpengine.com, the client would like to have default listings show up with the featured items. Then in the dropdown he’s hoping to have an “order by distance” or proximity, really. How might I set that up?

    Thank you so much for the help! This has been a killer to figure out and we’re almost there.

    #18046

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    HI Kenny, we are in the middle of improving all aspects of the near search, i would hold off a week or so if u can as it sounds like why you want may be included in these improvements.

    Stiofan

    #18068

    Kenny Eliason
    Expired Member
    Post count: 54

    Awesome, man! It just going to be a core update I’m looking for?

    #18081

    Guust
    Moderator
    Post count: 29970

    Kenny, yes, that should be in the GD core plugin.

    #20600

    Kenny Eliason
    Expired Member
    Post count: 54

    So I think this is actually causing an issue on my site right now. If I hit any of the directory category pages, it tries to geolocate me then redirects me to a non-existant page giving me a 404 error. Are there any settings for this plugin? I’ve looked and looked but can’t seem to find anything.

    I just need it to only identify the current location of the user when they try and search near their current address. Is that possible? Thanks guys!

    #20601

    Guust
    Moderator
    Post count: 29970

    I think what you are describing is the result of your GD Share Location addon, and that you have chosen not to share your location.
    That is nothing to do with the GD search function.

    Let us know if I misunderstood, and if you want us to look at your settings, post your admin details in a private message.

    #20611

    Kenny Eliason
    Expired Member
    Post count: 54
    This reply has been marked as private.
    #20678

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You have no location switcher on the apge anywhere which i think is part of the problem.

    Stiofan

    #20690

    Kenny Eliason
    Expired Member
    Post count: 54

    Ah, that may be the issue. Thanks for the feedback. How do I add a location switcher? And what exactly does a location switcher do?

    Thanks Stiofan! You sure do reply to a ton of these messages!

    #20696

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can add it to your menu or use a text widget and shortcode.

    #1 menu: GD>multilocation>Show location switcher in menu
    also GD>design>permalinks>Show geodirectory navigation in selected menu locations

    #2 shortcode: put the following in functions.php to allow shortcodes to be parsed in text widgets:

    add_filter('widget_text', 'do_shortcode');

    Then just create a text-widget next to search with the following shortcode:

    [geodir_location_tab_switcher autoredirect="1"]

    If using the shortcode, you should include it once on every page, maybe at the top of every sidebar.

    Stiofan

Viewing 15 posts - 1 through 15 (of 18 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket