Article Overview
- Category: Getting Started & Core Workflow
- Audience: Site Owners, Content Editors, WooCommerce Merchants & Developers
- Applies To: NextGen Smart Data Importer (Community Free & Enterprise Pro Editions)
- Purpose: Step-by-step walkthrough of the 4-step wizard: file upload, visual column auto-matching, dry-run testing, and production import.
1. Executive Summary
Importing data into WordPress should take seconds, not hours. NextGen Smart Data Importer replaces complex, multi-screen legacy import tools with a streamlined 4-Step Wizard:
- Step 1: Data Source — Drag & drop your CSV, Excel, XML, or connect a remote feed (Google Sheets, S3, FTP).
- Step 2: Field Mapping — Visual column auto-matching with instant sample inspection and AI assistance.
- Step 3: Import Settings — Configure post status, duplicate handling, and background performance limits.
- Step 4: Real-Time Execution — Non-blocking batch processing with live progress counters, telemetry, and 1-click rollback.
Whether you are migrating 50 blog posts or 50,000 WooCommerce catalog products, the workflow remains identical, fast, and crash-proof.
2. High-Level Import Pipeline Architecture
3. Step-by-Step Wizard Walkthrough
Step 1: Data Source & File Inspection
- Navigate to WP Admin ➔ NextGen Importer ➔ New Import.
- Select Upload Method:
- Local File: Drag and drop any
.csv,.xlsx,.xls, or.xmlfile into the dropzone (up to 512 MB supported via chunked streaming). - Remote Cloud Feed (Pro): Select Google Sheets, FTP/SFTP server, Amazon S3, Dropbox, or a direct HTTPS URL.
- Local File: Drag and drop any
- Live Sample Preview:
- NextGen automatically parses the header row and renders an interactive sample table showing rows 1 through 5.
- You can visually verify column delimiters, character encoding (UTF-8), and nested values before proceeding.
- Click Next: Field Mapping.
Step 2: Visual Field Mapping
NextGen automatically analyzes your spreadsheet headers and maps them to WordPress entity fields:
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ STEP 2: FIELD MAPPING │
│ Target Entity: [ Posts / Products / Users / Custom Post Types ▼ ] │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ SOURCE FILE COLUMN TARGET WORDPRESS FIELD │
│ ┌───────────────────────────────┐ ┌────────────────────────────────────────────────┐ │
│ │ Product Title │ ➔│ post_title (Title) [Auto-Match]│ │
│ │ SKU │ ➔│ _sku (WooCommerce SKU) [Auto-Match]│ │
│ │ Regular Price │ ➔│ _regular_price (Price) [Auto-Match]│ │
│ │ Main Image URL │ ➔│ featured_image (Featured Image) [Auto-Match]│ │
│ └───────────────────────────────┘ └────────────────────────────────────────────────┘ │
│ │
│ [ + Add Custom Field ] [ ✨ AI Auto-Map (Gemini / OpenAI) ] │
└────────────────────────────────────────────────────────────────────────────────────────┘- Target Entity Selector: Choose between Standard Posts, Pages, WooCommerce Products, Users, or any registered Custom Post Type (CPT).
- Fuzzy Auto-Matching: Header variations like
Item Name,Post_Title,product_name, andTitleautomatically resolve topost_title. - AI Smart Mapping: Click AI Auto-Map to let Gemini or OpenAI resolve complex, non-standard column headers automatically.
Step 3: Safety, Deduplication & Performance Settings
Configure how NextGen should handle existing records and server resource limits:
- Duplicate Matching Policy:
- Skip Duplicates: Ignore incoming records if a matching Post Title, Slug, or SKU already exists.
- Update Existing: Overwrite fields for matching items while preserving unchanged data.
- Create New (Always): Insert all rows as fresh entries.
- Post Status Default: Set initial publication status (
publish,draft,pending, orprivate). - Intelligent OOM Shield: Automatically enabled. Flushes WordPress
$wpdb->queriesbuffers every 500 queries to prevent memory crashes on shared hosting. - Batch Slice Size: Default
10to25rows per AJAX chunk. Adjust based on your server PHP time limit.
Step 4: Live Execution & Real-Time Telemetry
Click Start Import to begin ingestion:
- Live Speed Meter: Monitors ingestion velocity in records per second.
- Non-Blocking Execution: Browser crashes or network disconnects do not ruin the import; sessions resume automatically from the exact last processed row offset.
- Live Server Log: Real-time console logs display each created Post ID and attachment status.
4. Developer Technical Reference
Under the Hood: Session Initialization Hook
When an import session starts, NextGen fires the nextgen_importer_session_started action:
add_action('nextgen_importer_session_started', function ($import_id, $settings) {
// Custom telemetry or pre-import database locks
error_log("NextGen Import {$import_id} initialized with " . count($settings['mappings']) . " mapped fields.");
}, 10, 2);WP-CLI Headless Execution
Run the exact same 4-step import from the command line:
# Run headless import with auto-detection
wp nextgen import /var/www/catalog.csv --entity=product --update-existing=sku5. Frequently Asked Questions (FAQ)
Q: Can I test my import before modifying the live database?
Yes. NextGen includes a built-in Dry-Run (Simulate) mode in Step 3. It runs the full parsing, validation, and mapping pipeline without committing changes to MySQL, reporting potential validation errors in advance.
Q: What happens if an image download fails during the import?
The parent post is still published without interruption. The failed image is captured in the Media Health Ledger (wp_nextgen_image_queue), where you can recover and attach it with 1 click after the import finishes.