WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
[resolved] Automatically add existing posts (4 posts)

  1. John Chandler
    Member
    Posted 2 years ago #

    I have a custom post type with 4000 existing records and a meta_key with address data in it. When I individually update one of the posts, it automatically discovers the address and maps it. But I've not found a way to have it map multiple posts at once. (I've even tried a mass edit in the Posts screen of the dashboard.) Is there anyway to automate the plugin to review and map the existing posts?

    http://wordpress.org/extend/plugins/geo-mashup/

  2. Dylan Kuhn
    Member
    Plugin Author

    Posted 2 years ago #

    I haven't coded this yet, but it would be a matter of calling GeoMashupDB::copy_from_geodata() for each post. Timing can be tricky - you have to make sure you don't violate API terms for geocoding requests. There's some code in GeoMashupDB::bulk_reverse_geocode() that attempts to manage that.

  3. MCM
    Member
    Posted 1 year ago #

    Dylan I think I have the same question. I have converted all my address custom fields to = geo_address.

    I would like it to automatically now generate the Geo Lat & Long.

    Is this at all possible now?

  4. Dylan Kuhn
    Member
    Plugin Author

    Posted 1 year ago #

    If you have a conversion process the way to do it would be to set Geo Mashup's "Geocode Custom Field" to geo_address before converting. Then when that field is saved for a post, Geo Mashup will try to geocode it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.