Auto Geolocate for Search Near
This topic contains 17 replies, has 3 voices, and was last updated by Guust 10 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 10, 2014 at 12:49 am #17916
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!
October 10, 2014 at 1:46 am #17918Not 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?
October 10, 2014 at 10:32 am #17952Hi 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
October 10, 2014 at 5:35 pm #17981Awesome 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!
October 10, 2014 at 10:40 pm #18004The 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.
October 10, 2014 at 11:37 pm #18008That’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.
October 11, 2014 at 4:38 pm #18046HI 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
October 11, 2014 at 10:43 pm #18068Awesome, man! It just going to be a core update I’m looking for?
October 11, 2014 at 11:14 pm #18081Kenny, yes, that should be in the GD core plugin.
November 4, 2014 at 10:15 pm #20600So 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!
November 4, 2014 at 10:20 pm #20601I 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.
November 5, 2014 at 1:03 am #20611This reply has been marked as private.November 5, 2014 at 2:15 pm #20678You have no location switcher on the apge anywhere which i think is part of the problem.
Stiofan
November 5, 2014 at 4:15 pm #20690Ah, 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!
November 5, 2014 at 4:58 pm #20696You 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket