Custom Fields
Re-Envisioned
Support MB Custom Table GeoSpatial queries

This topic contains 2 replies, has 2 voices, and was last updated by  david.h 8 months, 3 weeks ago.

  • Creator
    Topic
  • #13110
    Resolved
    david.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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #13134

    Anh 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.h
    Participant

    Thanks Anh,

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

    David

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.