Skip to content

Enter Location not working for Custom Post types #708

@GoogleCodeExporter

Description

@GoogleCodeExporter
Hi,

The Enter Location functionality has stopped working for custom post types. 

Wordpress 4.0.1
Geo Mashup 1.8.2
Types 1.6.4

Under Settings > Geo Mashup > Collect Location For Buildings is checked which 
is the name for the custom post type with the slug of properties

This is added to functions.php:
[code]
function add_geo_mashup_location_editor() {
    if ( class_exists( 'GeoMashupPostUIManager' ) ) {
        $ui_manager = GeoMashupPostUIManager::get_instance();
        add_meta_box( 'geo_mashup_post_edit', __( 'Location', 'GeoMashup' ), array( &$ui_manager, 'print_form' ), 'properties', 'advanced' );
    }
}
[/code]

When you are in a custom post type you can enter the address in the "Find a new 
location:" box but when you hit return nothing happens.
If you add something to the Saved Name box and press Save you get the following 
error:
A location must have an ID or coordinates to be saved.

This was working, but it has just stopped working and I don't know anything 
that I have done which would effect this.

I have this issue on 2 different sites now with Custom post types.

Original issue reported on code.google.com by laure...@line49.ca on 12 Dec 2014 at 4:15

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions