GeoSpatial queries

Support MB Custom Table GeoSpatial queriesResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13110
    david.hdavid.h
    Participant

    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

    #13134
    Anh TranAnh Tran
    Keymaster

    Hi David,

    No, the plugin use $wpdb directly to add/update the data. Please use this:

    global $wpdb;
    $data = [
        'ID'      => $post_id,
        'field_1' => 'value_1',
        'field_2' => 'value_2',
    ];
    $wpdb->insert( 'your_table', $data );
    #13145
    david.hdavid.h
    Participant

    Thanks Anh,

    I'll let you know when I have something working.

    David

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.