How to show my original location address in the Map widget?

When you enter an address for a listing, the theme uses the Google Maps services to get geolocation details about it, including a standardized address format. This is used by default for consistency across your listings.

To remove this formatting and display your original address instead of the standardized one (the schema.org data will still be kept), you can add the following code in the functions.php file of a child theme:

function listable_remove_formatted_address() { 
	add_filter( 'listable_skip_geolocation_formatted_address', '__return_true' ); 
}
add_action( 'init', 'listable_remove_formatted_address' ); 

This code won’t work when using Regions for WP Job Manager plugin.

This article applies to Listable, as they share the same underlying structure.

Updated on July 31, 2017

Was this article helpful?