How hide exact address for public view

Hi, I have a question about the Location field in HivePress.

Even when “Hide exact location” is enabled, the full address (with street and house number) is still shown publicly at the top of the listing — under the title.

I understand that the full address is needed for accurate coordinates on the map — and that’s fine. Guests should see approximately where the place is. Just showing the city name isn’t enough, because streets can be very long and vague.

But many hosts use Google Maps autocomplete and accidentally enter their full home address, thinking it will be hidden — and then it gets shown to everyone. That’s not just against privacy and the my generel business concept, but also for safety and legal reasons.

Here’s what I’d like:
1. A way to hide the full address from public view — and show only city, region or a general area
2. A way to rename the “Location” label, to guide hosts (e.g. “Enter area or street – don’t include house number”)
3. I’ll use a separate custom field for the real address, visible only to admin and sent to the guest after booking — that part I can handle

So basically:
– I want guests to see an approximate location on the map (based on full address, internally)
– But I don’t want the full address (with house number) to appear visibly in the listing

Is there a way to do that in hiven press setting? or should I use a specifik snippet? Which?

Thanks.
Ewigrass

Hello,
I’m interested in this too.
A bit like AIRBNB, which only discloses the full address once the rental has been paid.
It’s true that it bothers me to show the exact address of advertisers.

Thanks :wink:

Hi,

Please note that this feature is only available in Google Maps; it is not yet available in Mapbox. Also, if you enabled this feature after adding the address in the location field, it will work as you described. Please try resaving the location, clearing the cache, and checking if the issue persists.

Regarding changing the field, we recommend simply adding a description for the location label using this PHP snippet:

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

		return $form;
	},
	1000
);

I hope it helps

Thank you Andrii! I

t worked and changed the “Location” label on listings. :white_check_mark:
Just to clarify for others:
→ This method only changes the text label (word “Location”),
→ It does not hide the address — whatever address the user enters will still be shown.

Now my question about the Price** field:
This field is built-in, and I can’t turn it into a filter or attribute a sin case with Location.

Is there any way to:

  1. Allow price selection with fixed steps (like €10, €20, €30, etc.)?
  2. Or make it a dropdown/select instead of a free text field?

Or should I just add a manual note near the price field (like with Location) and rely on users to enter prices correctly?

Thanks again for your help

Best Regars

Ewjgrass

Hi,

  1. Please note that the address-hiding feature will only work if you have Google Maps enabled and configured. If, for example, you enable this feature after you have already added a location to your listing, it will not work. We therefore recommend that you save your listing or create a new one. Then go into incognito mode and check if the full address is displayed, both in text format and on the map.

  2. Regarding price, please create a new topic on our forum with more detailed information about your use case, and we will try to provide a solution or workaround.

I hope it helps

Thank you so much, Andrii!

I followed your instructions exactly:

  • I enabled Google Maps and configured it correctly.
  • I added the address only after enabling it.
  • I saved the listing again, cleared the cache, and checked in incognito mode.

However, the exact address (street and house number) still appears publicly in the listing text, even though the map shows only a blurred area.

I also added this PHP snippet exactly as you suggested:

add_filter(
  'hivepress/v1/forms/listing_update',
  function ( $form ) {
    $form['fields']['location']['description'] = 'Only enter city and postcode. It will be shown publicly.';
    return $form;
  },
  1000
);

The snippet works — it shows the description in the Location field correctly.
But it doesn’t hide the full address in the public listing. The address with house number etc. still appears in the listing text.

→ My question:
Is this expected behavior?
Do I need to apply a workaround — for example, asking users to enter only the city and area in the Location field, and to provide the exact street address in a separate custom listing field below?

Thanks a lot in advance,

Regarding price I added new topic here:

Price Field modification - How to limit and guide Price input? - General / RentalHive - HivePress Community

Best Regards

Ewjgrass

Hi,

Thanks for the details. Please send temporary WP access to support@hivepress.io with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin Temporary Login Without Password – WordPress plugin | WordPress.org.