1

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”.

  • You've mentioned has location data What kind of data ? Custom fields, taxonomies ? – Sumit Mar 29 '16 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 '16 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 '16 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 '16 at 7:23
  • That is complicated till you find what is actual problem. When data is there then why it doesn't getting picked up! If something is written keeping in mind that you are on post edit screen then it won't work. It is something like Trial and error It might be possible that it will work or may be not. You can run it, after making a database backup. Good Luck! – Sumit Mar 29 '16 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.