MichDe / wordpress-geo-mashup

Automatically exported from code.google.com/p/wordpress-geo-mashup
1 stars 0 forks source link

Enter Location not working for Custom Post types #708

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
I think I just responded on the list that you shouldn't need any code in 
functions.php, just the Collect Location For setting. I'd start by getting rid 
of that code.

Original comment by dylankk...@gmail.com on 8 Jan 2015 at 4:10