Hello,
I was provided the below snippet in August as an update was required for the Geolocation extension since locations for imported listings weren’t appearing on Google Maps. See the below reply I received from Ihor. Am I able to now remove the snippet, or is the update still pending?
From Ihor:
The Import is already updated, but another update is required on the Geolocation extension’s side. Please use this temporary fix (you can remove it once the Geolocation extension is updated):
add_filter( 'hivepress/v1/models/listing/attributes', function( $attributes ) { if ( isset( $attributes['location'] ) ) { $attributes['latitude']['edit_field']['label'] = 'Latitude'; $attributes['latitude']['edit_field']['_order'] = 36; $attributes['longitude']['edit_field']['label'] = 'Longitude'; $attributes['longitude']['edit_field']['_order'] = 37; } return $attributes; }, 1000 );
Once you add it, the Latitude and Longitude fields will become available for mapping.