# How to Restrict Addresses to Specific Location Types

**URL:** <https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880>\
**Category:** Geolocation\
**Created:** [August 1, 2026, 11:50am UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880 "2026-08-01T11:50:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![debharrison](https://community.hivepress.io/user_avatar/community.hivepress.io/debharrison/32/14560_2.png) [@debharrison](https://community.hivepress.io/u/debharrison)\
**Post date:** [August 1, 2026, 11:50am UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/1 "2026-08-01T11:50:10Z")

</div>

Hi

We have out directory set up to only include the town and county in the UK.

However a recent user signed up and they have their full post code on display. Why is this please?

Have they verified on Geolocation or something.

Please advise.

 ![postcode](https://community.hivepress.io/uploads/default/original/2X/2/2d2ab50142504884fe8dbc733ece17f960b155e7.png)

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [August 3, 2026, 2:51pm UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/2 "2026-08-03T14:51:54Z")

</div>

Hi,

Welcome to the community. 🐝

Could you please let us know which map provider you are using?

If you’re using Google Maps, you can enable the Hide exact address option in HivePress \> Settings \> Geolocation \> Address.

If needed, you can also add a custom placeholder to the location field using the following snippet [[How to add custom code snippets - HivePress Help Center](https://help.hivepress.io/article/23-how-to-add-custom-code-snippets)]:

```auto
add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		if(isset($form['fields']['location'])){
		  $form['fields']['location']['description'] = 'custom text here';
		}

		return $form;
	},
	1000
);

```

Hope this helps

---

<div class="post-metadata">

**Author:** ![debharrison](https://community.hivepress.io/user_avatar/community.hivepress.io/debharrison/32/14560_2.png) [@debharrison](https://community.hivepress.io/u/debharrison)\
**Post date:** [August 6, 2026, 1:07pm UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/3 "2026-08-06T13:07:49Z")

</div>

I have checked hide exact address. Also regions fields only include city, region, county and subregion.

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [August 6, 2026, 2:48pm UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/4 "2026-08-06T14:48:13Z")

</div>

Thanks for the details.

Could you please let us know which map provider you’re using?

---

<div class="post-metadata">

**Author:** ![debharrison](https://community.hivepress.io/user_avatar/community.hivepress.io/debharrison/32/14560_2.png) [@debharrison](https://community.hivepress.io/u/debharrison)\
**Post date:** [August 7, 2026, 2:36pm UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/5 "2026-08-07T14:36:40Z")

</div>

Google Maps

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [August 10, 2026, 4:25pm UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/8 "2026-08-10T16:25:00Z")

</div>

Thanks for the details.

Apologies for the confusion, but this isn’t possible out of the box at the moment. We do plan to add this functionality in one of the upcoming updates, though.

If needed, we can also add a temporary fix directly to your site in the meantime.

Just to clarify regarding the Hide the exact address option: it hides the house/building number while keeping the street, city, and postal code visible, since this information still represents the general area rather than the exact location.

It would also be helpful to understand how you’re using the geolocation functionality. For example, do you use the map to display listings? If so, would you like the map to show only the general city/area rather than the exact location of each listing?

Please let me know, and we’ll see what would work best for your use case.

---

<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:** [August 13, 2026, 10:14am UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/9 "2026-08-13T10:14:16Z")

</div>

Hey @debharrison,

I just wanted to jump in and let you know, I’ve recently released a new custom extension for HivePress that includes the ability to restrict the locations Users are able to choose from.

- [Geolocation Plus for HivePress [Custom Plugin]](https://community.hivepress.io/t/geolocation-plus-for-hivepress-custom-plugin/17906)

If you decide to check it out I’d love to hear any feedback you can offer - and, if you have any ideas to improve it, or encounter any bugs - just drop a reply in the relevant topic, and I’ll try and push an update out as soon as possible! 🙂

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:** [September 12, 2026, 10:14am UTC](https://community.hivepress.io/t/how-to-restrict-addresses-to-specific-location-types/17880/10 "2026-09-12T10:14:31Z")

</div>

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