Import working well, apart from Location

Hi i am importing a number of sites using the IMPORT CSV, i have a location field, which i use a postcode for.
IT all imports ok… but when i search on that postcode, the site is not found. I have to go in and edit the listing, at the location, i have to click on the suggestion (that comes up when i enter the postcode, thats there already) & then once saved i can find the site again.

HOw can i get the import function to import the location that is searchable.

Hello,

I don’t know if this is your case, but is your location field based on geolocation extension ?

If so, you must know that the geolocation consists of three elements :

  • A “location” text (in your case a postcode)
  • a latitude
  • a longitude

The location name by itself won’t help much.

GPS coordinates are stored in hp_location, hp_latitude, hp_longitude fields respectively.

Hope this helps.

1 Like

Hi thanks, when i do an export i only get one “location” filed “Location”, which i’ve used as a postcode (in the past). How do i integrate the hp_location etc attributes?

when i import, i only get fields for description, title, location, image, etc - not sure how i am able to add in lat/long values

see image:

Hi,

Please make sure that you have the latest version of the Import 1.2.2 extension, as you should have the following two fields available: Awesome Screenshot.

thanks, i seem already to have the 1.2.2 version… see image

{12CF56E2-A93A-464E-A62E-2D9187FAA6CF}

and doesnt have a latitude/longitude option… I’ m very confused.

I noticed that latitude/longitude options were introduced as part of the Geolocation version 1.3.7.1 ; i have the latest version of the plug in - but cant use the lat/long options… Do i need to do to re-fresh the plugin???

Hi,

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.

1 Like

thanks, i’ve sent an email and set up the plugin

Hi,

Yes, there is a small issue, we have added a temporaries fix, now these two fields are displayed.

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
);

​I hope this is helpful to you

I’ve got the same problem - despite matching columns for latitude and longitude. I’ve tried reinstalling the plugin for the newest version, but I still have to go into each listing and click on the suggested location.

I’m wondering if this has anything to do with the decimal separator (comma vs point).

Any ideas?

Thanks!

Hi,

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. Also, please attach the file you are using for import.

Tech support sorted this for me…and i found if i use the character with ascii code 150, it failed to import. That was simple to fix (using another “-” character)

Thanks Andrii, we’ve been chatting via email for a while, I’ve sent you the access. I’m escolhasenior@gmail.com. I’ve sent you the file attached there as well. Cheers,

Thanks Graham! I tried this but apparently I’m not using – (the ascii 150 char). I tried finding it with cntrl F on my data and didn’t return anything.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.