How to Restrict Addresses to Specific Location Types

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.

Hi,

Welcome to the community. :honeybee:

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]:

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

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

Thanks for the details.

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

Google Maps