Support » Plugin: GEO my Wordpress » Needs to insert locations into database table

  • Resolved alexnn

    (@alexnn)


    Hello,
    I’m trying to do it with code

    global $wpdb;
    $wpdb->insert( $wpdb->prefix . 'gmw_locations', array( 'object_id' => $post_id, 'object_type' => 'post', 'blog_id' => 1, 'user_id' => 1, 'title' => wp_strip_all_tags( $product[0]->name ), 'address' => $product[0]->venue ), array( '%d', '%s', '%d', '%d', '%s', '%s' ) );
    

    But it is not working…
    Records are imported into the table, but on the front, for any venue, I see a point in the ocean)…
    Venu location autodetection does not work…What do I need to add to this code to make it work?
    Here’s some info that may help…?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Needs to insert locations into database table’ is closed to new replies.