=== Tecnomago CSV Pilot ===
Contributors: tecnomago
Tags: csv, import, images, bulk, mapping
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Effortless CSV importer for WordPress with image support, visual column mapping, and batch processing. Pilot your data with Tecnomago.

== Description ==

**Tecnomago CSV Pilot** is a robust, user‑friendly CSV importer for WordPress. It lets you import posts, pages, and any custom post type from a CSV file, complete with featured images, galleries, and custom fields.

Key features:

* Upload CSV files with or without a header row.
* Visually map CSV columns to WordPress fields (title, content, excerpt, slug, author, status, etc.).
* Map columns to custom post meta.
* Import images via URL (featured image and galleries) with MIME validation.
* Batch processing to avoid server timeouts.
* Save and reuse mapping templates as JSON (import/export).
* Export posts to CSV, including taxonomies and meta keys.
* Security first: sanitization, nonces, upload validation, and capability checks.

Built with listing directories and custom post types in mind — works seamlessly with themes like ListingPro and Places.

= Get involved =

* For support and customization requests, visit [Tecnomago](https://tecnomago.com.br).

== Installation ==

1. Upload the `tecnomago-csv-pilot` folder to `/wp-content/plugins/` or install via Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Go to **CSV Pilot** in the WordPress admin menu.
4. Follow the steps: Upload CSV → Map columns → Start import.

== Frequently Asked Questions ==

= What CSV formats are supported? =

Comma‑delimited CSV with quotes. If your file uses another delimiter, convert it before uploading. The plugin attempts to detect and convert common encodings (UTF‑8, ISO‑8859‑1, Windows‑1252).

= Can I import images? =

Yes. Provide the column containing full image URLs. The plugin checks content type and file size before downloading, then adds images to the Media Library as native attachments.

= Are posts published automatically? =

You can set a default status (Publish, Draft, Pending) in the mapping step. You may also map a column to override the status per post.

= How do I handle duplicates? =

The current version creates new posts. Duplicate detection and update by key (slug, SKU, meta) is planned. Contact us if you need this immediately.

= Can I export a mapping template and import it on another site? =

Yes — templates are saved as JSON and can be exported/imported via the plugin interface.

= Is it compatible with directory themes? =

Absolutely. It has been tested with ListingPro and Places, but works with any registered custom post type.

== Screenshots ==

1. CSV file upload screen.
2. Column mapping and template management.
3. Import progress with log.
4. Export posts to CSV with field selection.

== Changelog ==

= 1.0.1 =
* Security improvements and sanitization.
* Default post status option and template saving.
* CSV export functionality.

= 1.0.0 =
* Initial release: upload, mapping, batch import with images.

== Upgrade Notice ==

= 1.0.1 =
Security‑focused update. Recommended to test on a staging site before applying to production.

== Support ==

Need customizations (dedupe, ACF, scheduling, directory integration)? Contact Tecnomago at:
https://tecnomago.com.br/contato

== License ==

Tecnomago CSV Pilot is free software, released under the GPLv2 (or later). See LICENSE file for details.