Getting Started

Quick Start & First Import

Master the 4-step wizard: dataset upload, visual column auto-matching, dry-run testing, and fast execution.

Frexten Engineering Team
Updated 2026-11-20

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:

  1. Step 1: Data Source — Drag & drop your CSV, Excel, XML, or connect a remote feed (Google Sheets, S3, FTP).
  2. Step 2: Field Mapping — Visual column auto-matching with instant sample inspection and AI assistance.
  3. Step 3: Import Settings — Configure post status, duplicate handling, and background performance limits.
  4. 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

Architecture Flowchart
flowchart TD A["File Upload / Remote Feed
(CSV, XLSX, XML, Sheets)"] --> B["Streaming Chunk Parser
(Parses first 5 rows for preview)"] B --> C["Step 2: Smart Auto-Mapper
(Fuzzy match + AI Column Detection)"] C --> D["Step 3: Safety & Performance Guard
(OOM Shield, Duplication Policy)"] D --> E["Step 4: Batch Processing Engine
(Slice-by-slice atomic DB execution)"] E --> F{"Import Outcome"} F -- "Success" --> G["Live Published Posts & Sideloaded Media"] F -- "Row Failure" --> H["Isolated into wp_nextgen_import_failed_rows"] F -- "Media Failure" --> I["Logged in wp_nextgen_image_queue for 1-Click Retry"]

3. Step-by-Step Wizard Walkthrough

Step 1: Data Source & File Inspection

  1. Navigate to WP Admin ➔ NextGen Importer ➔ New Import.
  2. Select Upload Method:
    • Local File: Drag and drop any .csv, .xlsx, .xls, or .xml file 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.
  3. 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.
  4. Click Next: Field Mapping.

Step 2: Visual Field Mapping

NextGen automatically analyzes your spreadsheet headers and maps them to WordPress entity fields:

text
┌────────────────────────────────────────────────────────────────────────────────────────┐
│  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, and Title automatically resolve to post_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:

  1. 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.
  2. Post Status Default: Set initial publication status (publish, draft, pending, or private).
  3. Intelligent OOM Shield: Automatically enabled. Flushes WordPress $wpdb->queries buffers every 500 queries to prevent memory crashes on shared hosting.
  4. Batch Slice Size: Default 10 to 25 rows per AJAX chunk. Adjust based on your server PHP time limit.

Step 4: Live Execution & Real-Time Telemetry

Click Start Import to begin ingestion:

Sequence Diagram
sequenceDiagram autonumber actor User as Store Administrator participant UI as NextGen Stepper UI participant API as /nextgen-importer/v1/import-chunk participant Core as NextGen_Base_Importer participant DB as WordPress MySQL DB User->>UI: Clicks "Start Import" loop Slice by Slice (e.g. 20 rows per chunk) UI->>API: POST /import-chunk (offset, limit, session_id) API->>Core: Parses rows, maps fields, sideloads media Core->>DB: Inserts entities, updates postmeta & taxonomies Core-->>API: Returns { processed: 20, failed: 0, memory_mb: 34 } API-->>UI: Updates live progress bar, speed (rows/sec), and time remaining end UI->>User: Displays "Import Completed Successfully! (100%)"
  • 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:

php
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:

bash
# Run headless import with auto-detection
wp nextgen import /var/www/catalog.csv --entity=product --update-existing=sku

5. 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.