data as $row) { if (empty($row['store'])) { $halt = true; } $dealer = array(); $dealer['Store'] = $row['store']; $dealer['Address'] = $row['address']; $dealer['City'] = $row['city']; $dealer['Pro'] = $row['pro']; $dealer['Pc'] = $row['pc']; $dealer['Email'] = $row['email']; $dealer['Phone'] = $row['phone']; echo '
';
                print_r($dealer);
                echo '
'; $dealer['ARGS'] = array( 'post_author' => 1, 'post_title' => $dealer['Store'], 'post_status' => 'publish', 'post_author' => 1, 'post_type' => 'dealer '); if ($halt != true) { if ($dealer['ID'] = wp_insert_post($dealer['ARGS'])) { update_post_meta($dealer['ID'], 'wpcf-address', $dealer['Address']); update_post_meta($dealer['ID'], 'wpcf-city', $dealer['City']); update_post_meta($dealer['ID'], 'wpcf-email', $dealer['Email']); update_post_meta($dealer['ID'], 'wpcf-pc', $dealer['Pc']); update_post_meta($dealer['ID'], 'wpcf-phone', $dealer['Phone']); update_post_meta($dealer['ID'], 'wpcf-pro', $dealer['Pro']); update_post_meta($dealer['ID'], 'wpcf-store', $dealer['Store']); $i++; } } unset($product, $halt); } echo $i . ' Products added.'; } } } else { ?>

*COMPANY REMOVED ** Location Importer Tool

Please make sure the excel spreadsheet follows the following guidelines:

  • The excel file must be a 'csv' file.
  • Must include the following columns (all lowercase): store, address, city, pro, pc, email, phone
  • Click here to delete ALL dealer location data in bulk.