Visitor location detection provides an origin for supported nearby searches and current-location displays. It does not geotag a WordPress post or permanently set a member's directory location.
Automatic detection
In General Settings, Auto Locator lets GEO my WP attempt location detection on a first visit. The browser can request permission. A successful position is kept in GEO my WP's location cookies for supported features.
The core automatic attempt uses a cookie to avoid repeatedly asking on every page. Existing location/attempt cookies can therefore affect testing. Use a fresh test session when checking first-visit behavior.
A visitor-triggered lookup
Locator buttons in supported forms or Current Location output let visitors request a position themselves. Automatic form submission after detection is a separate form option. Obtaining coordinates does not mean every directory immediately searches.
Browser geolocation needs a secure context and permission. Accuracy varies by device and environment. A denied request, timeout or unavailable position must leave the visitor a useful manual search path.
Manual entry and IP location
Core browser detection uses the browser's location permission; it does not require enabling Google's separate Geolocation API. Resolving coordinates into an address still uses the selected geocoder and its credentials.
For Google address autocomplete in GEO my WP 4.5.5.8 and later, enable Places API (New) in the Google Cloud project and allow it on the browser key. Follow the Google Maps browser and server API-key setup guide, including its limited legacy fallback guidance.
Manual address entry uses the selected geocoder. It is useful when a visitor wants another area, is using a device with poor location accuracy or declines detection.
The IP Address Locator extension supplies its configured IP lookup. That estimate can identify an approximate area rather than a precise device position. Review its provider settings and keep correction/manual entry available.
Use the position in a form
For initial nearby results, enable the form's User's Current Location Filter and set the intended radius/unit. A default address can provide a fallback when visitor coordinates are unavailable. Test submitted behavior separately.
Test four states
- First visit with location permission granted.
- Permission denied or position unavailable.
- Existing stored location from an earlier visit.
- Manual entry of a different address.
