CPT: Batch add a new meta key with combined values of multiple custom meta_keys
-
Hi there,
Case:
My custom posttype kandidates have the meta keys: address, postal and city.
They need to have an extra meta key: martygeocoderaddress.
address_total needs to be a custom meta key with the existing values of the above combined and comma seperated, like so: address (value), postal (value), city (value).
Is this possible with this plugin and if not, how can I pull this off?My goal is to pass this new meta_key’s value to Google maps so I can add lat & long values to another meta key: martygeocoderlatlng for my custom posts.
The plugin to geocode the address field (meta key: martygeocoderaddress) which I’m using now is: Address Geocoder.Hope someone can help me with this one. My client has about 550 records that need to be geocoded for proximity search in the back-end. I can pull this one of doing this by hand but then I would have to edit each post individually and copy the required field value’s to a new meta key: martygeocoderaddress and then hit geocode address to populate the meta key: martygeocoderlatlng with the lat/long values passed from Google. After that I have to press save. Is there a faster way?
- The topic ‘CPT: Batch add a new meta key with combined values of multiple custom meta_keys’ is closed to new replies.