Meta Box
Support Forum
Support › MB Custom Table › GeoSpatial queriesResolved
Hi,
I am interested in using WP-GeoMeta with Metabox Custom Tables:
https://en-gb.wordpress.org/plugins/wp-geometa/
The plugin detects GeoJson metadata and copies the geo data to a separate spatial table.
Does Metabox Custom Tables use standard WordPress meta functions that will allow GeoMeta to intercept the save and copy the data to its dedicated table?
Thanks
Hi David,
No, the plugin use $wpdb directly to add/update the data. Please use this:
$wpdb
global $wpdb; $data = [ 'ID' => $post_id, 'field_1' => 'value_1', 'field_2' => 'value_2', ]; $wpdb->insert( 'your_table', $data );
Thanks Anh,
I'll let you know when I have something working.
David