I’m running a listing directory site (festivals-photos.fr) using ListingHive theme + HivePress Geolocation 1.3.10 with Mapbox as the map provider.
The problem:
The geolocation search field works visually (Mapbox autocomplete suggests cities correctly), but searching by location always returns “Nothing found”, even for cities where listings exist.
What I’ve verified:
All listings have hp_latitude and hp_longitude correctly stored in wp_postmeta (confirmed via phpMyAdmin — 20 listings all have valid coordinates)
The map on the homepage displays all listing pins correctly
When submitting the search form, the URL contains latitude=43.676247&longitude=4.627625 but the query returns no results
jQuery('[name="_geolocation_lat"]').length returns 0 — the hidden geolocation fields are not injected into the search form by the plugin
Environment:
Theme: ListingHive
HivePress core: latest
HivePress Geolocation: 1.3.10
Map provider: Mapbox
WordPress: latest
Listings were created before HivePress Geolocation was activated — could this be the cause?
Question:
Why does HivePress Geolocation not inject the hidden fields _geolocation_lat / _geolocation_lng into the search form, and why does the search not match listings even though hp_latitude / hp_longitude are correctly stored?
This sounds like the most obvious cause, as in that case the listings created prior to activating the Geolocation extension won’t have any locations assigned to them.
Edit one of these listings, and then try resaving it with a location definitely filled in.
If this doesn’t return any search results, my next assumption would be a third-party plugin or customisation causing a conflict. In this case, please try temporarily deactivating any non-hivepress plugins, and any customisations you may have made to rule these options out.
I tried resaving the listing with the location filled in, but it didn’t help. The coordinates hp_latitude and hp_longitude are correctly stored in the database (confirmed via phpMyAdmin), but the search still returns “Nothing found”.
I also confirmed that jQuery('[name="_geolocation_lat"]').length returns 0 on the search form — the hidden geolocation fields are never injected into the form by the plugin.
Could this be a conflict with another plugin? If so, which plugins are most likely to cause this issue so I can test more efficiently?
Problem solved! The culprit was Events Manager — it was conflicting with HivePress Geolocation. I deactivated all plugins except HivePress and Geolocation, then reactivated them one by one until I found the conflict.