3

I have imported data from a custom post type that has location data for a map plugin (Progress Map). I have about 500+ posts each with different location data. For some reason the location data isn't registered unless I save each post again.

I've been looking for a way to quickly automate this but no one seems to have a solution that doesn't involve also changing data on each post which I don't want to do.

I thought there would be a simple snippet that you can change the post type on. I'm not a programmer so a lot of this goes over my head.

Related Articles

Update/My Fix

It turns out that with the Progress Map plugin you can regenerate the data for all the locations. So in effect I solved MY problem but not the specific problem I was asking about.

I'm unsure if this counts as an answer so I'll leave it here and keep this as un-answered.

For pins(location data) not appearing on the overall map you can regenerate the locations: Go to “Troubleshooting & configs” and click on the button “Regenerate markers”.

Update 2020-03-28

Update 2021-03-26 (ACF Fields)

8
  • You've mentioned has location data What kind of data ? Custom fields, taxonomies ?
    – Sumit
    Mar 29, 2016 at 5:12
  • It would most likely be a custom field. It's longitude and latitude that you input. All other custom fields and taxonomies attached to the custom post are fine.
    – Jake
    Mar 29, 2016 at 5:20
  • Then you just need to use update_post_meta() But you must know what data need to update in which format! You do not need to use wp_update_post( $my_post );
    – Sumit
    Mar 29, 2016 at 6:43
  • I don't actually need to change any data. I need the current data to re-save. When I open the post I can see the saved latitude and longitude, it just doesn't seem to be getting picked up. Hopefully that makes sense. Can you do that with update_post_meta( )? Perhaps 'Update' is the wrong terminology?
    – Jake
    Mar 29, 2016 at 7:23
  • 1
    So sad to see no answer for this. Mar 27, 2020 at 22:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.