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

When you enter an address for a list­ing, the theme uses the Google Maps ser­vices to get geolo­ca­tion details about it, includ­ing a stan­dard­ized address for­mat. This is used by default for con­sis­ten­cy across your list­ings.

To remove this for­mat­ting and dis­play your orig­i­nal address instead of the stan­dard­ized one (the schema.org data will still be kept), you can add the fol­low­ing 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 Man­ag­er plu­g­in.

Updated on July 31, 2017

Was this article helpful?

Related Articles