# Geolocation search returns "Nothing found" despite coordinates stored in database

**URL:** <https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794>\
**Category:** Geolocation\
**Created:** [June 29, 2026, 7:10pm UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794 "2026-06-29T19:10:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfaisans](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/b4bc9f/32.png) [@nfaisans](https://community.hivepress.io/u/nfaisans)\
**Post date:** [June 29, 2026, 7:10pm UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/1 "2026-06-29T19:10:06Z")

</div>

**Hi HivePress support,**

I’m running a listing directory site ([festivals-photos.fr](http://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?

Thank you.

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [June 29, 2026, 9:56pm UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/2 "2026-06-29T21:56:25Z")

</div>

Hi @nfaisans,

> [@nfaisans](#):
>
> Listings were created before HivePress Geolocation was activated — could this be the cause?

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 hope this helps!

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![nfaisans](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/b4bc9f/32.png) [@nfaisans](https://community.hivepress.io/u/nfaisans)\
**Post date:** [June 29, 2026, 10:09pm UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/3 "2026-06-29T22:09:01Z")

</div>

Not really. Some listing were created before installation, but there’s three after installation.

---

<div class="post-metadata">

**Author:** ![nfaisans](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/b4bc9f/32.png) [@nfaisans](https://community.hivepress.io/u/nfaisans)\
**Post date:** [June 29, 2026, 10:20pm UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/4 "2026-06-29T22:20:24Z")

</div>

**Hi Chris,**

Thank you for your reply.

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?

Thank you,  
Luz

---

<div class="post-metadata">

**Author:** ![nfaisans](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/b4bc9f/32.png) [@nfaisans](https://community.hivepress.io/u/nfaisans)\
**Post date:** [June 29, 2026, 11:11pm UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/5 "2026-06-29T23:11:35Z")

</div>

**Hi Chris,**

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.

Geolocation search is now working perfectly.

Thank you for your help!

Luz

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [June 30, 2026, 6:54am UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/6 "2026-06-30T06:54:50Z")

</div>

Hi @nfaisans,

You’re very welcome. Glad to hear you got this resolved!

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [July 30, 2026, 6:55am UTC](https://community.hivepress.io/t/geolocation-search-returns-nothing-found-despite-coordinates-stored-in-database/17794/7 "2026-07-30T06:55:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
