=== Post/Page Import Export - Migrate Content with Custom Fields & Taxonomies === Contributors: wpspin Donate link: https://wpspins.com/ Tags: export posts, import posts, content migration, clone pages, copy posts Requires at least: 4.1.0 Tested up to: 7.1 Stable tag: 2.1.1 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Export and import WordPress posts & pages as JSON files with full support for custom fields, taxonomies, ACF fields, and featured images. == Description == ๐Ÿ“ฆ **Post/Page Import & Export** makes it easy to migrate content between WordPress sites โ€” no database dumps, no complex migration tools. With a single click, export any post or page as a lightweight **JSON file** that includes everything: content, custom fields, taxonomies, featured images, and ACF data. Then upload that file on another WordPress site to instantly recreate the content. **Just click, download, upload, done.** = โœจ Key Features = * ๐Ÿ“ค **One-Click Export** โ€” Export any post or page as a JSON file directly from the list view * ๐Ÿ“ฅ **Quick Import** โ€” Import JSON files via a simple popup modal * ๐Ÿ–ผ๏ธ **Featured Image Transfer** โ€” Automatically downloads and re-attaches featured images on the destination site * ๐Ÿท๏ธ **Taxonomy Preservation** โ€” Categories, tags, and custom taxonomies are fully preserved * ๐Ÿ“ **Custom Fields / PostMeta** โ€” All custom field data is carried over during migration * ๐Ÿ”ง **ACF Support** โ€” Advanced Custom Fields including nested repeaters up to 5 levels deep * ๐Ÿ–ผ๏ธ **Inline Image Handling** โ€” Images embedded in post content are downloaded and URLs are updated automatically * ๐Ÿ“„ **Custom Post Types** โ€” Works with any registered post type, not just posts and pages * ๐Ÿ—๏ธ **Page Builder Friendly** โ€” Compatible with Elementor, WPBakery, Beaver Builder, and more * ๐Ÿ”’ **Secure** โ€” Only administrators can export content = ๐Ÿ’ก Use Cases = 1. ๐ŸŒ **Cross-Site Content Migration** โ€” Move posts or pages from a staging site to production without database migration 2. ๐Ÿ“‹ **Content Duplication** โ€” Clone a post or page within the same site with all its metadata intact 3. ๐Ÿ—๏ธ **Staging to Production** โ€” Build pages on staging and deploy to the live site via JSON export/import 4. ๐Ÿ”„ **Multi-Site Content Sharing** โ€” Share content across a multisite network or between independent installs 5. ๐Ÿ“ฆ **Content Backup** โ€” Export critical posts as JSON backups before making major changes 6. ๐Ÿ‘จโ€๐Ÿ’ป **Developer Handoff** โ€” Share pre-built pages with clients or team members as portable JSON files 7. ๐Ÿ›’ **WooCommerce Product Migration** โ€” Move product pages with custom fields between stores 8. ๐Ÿ“ฐ **Editorial Workflow** โ€” Export drafted content for offline review and re-import after approval 9. ๐ŸŽจ **Template Distribution** โ€” Create a page with ACF fields and page builder layouts, distribute as JSON 10. ๐Ÿงช **A/B Testing** โ€” Duplicate pages quickly to test different content versions while preserving all metadata 11. ๐Ÿซ **Demo Content Setup** โ€” Set up demo content on fresh WordPress installations for training or presentations 12. ๐Ÿ”€ **Theme Migration** โ€” Export key pages and re-import them when switching themes to preserve structured content = ๐Ÿ“‹ What Gets Exported = * โœ… Post title, content, and excerpt * โœ… Post status and post type * โœ… Featured image (auto-downloaded on import) * โœ… All custom fields / postmeta * โœ… Categories, tags, and custom taxonomies * โœ… ACF fields (including nested repeaters and image fields) * โœ… Inline images in content (auto-downloaded and URLs updated) = ๐Ÿค Works Great With These Popular Plugins = * ๐Ÿ”ง **Advanced Custom Fields (ACF)** โ€” Full support for ACF fields including nested repeaters and image fields * ๐Ÿ—๏ธ **Elementor** โ€” All layout data stored in postmeta is preserved during export/import * ๐Ÿ—๏ธ **WPBakery Page Builder** โ€” Shortcode-based layouts in post content transfer seamlessly * ๐Ÿฆซ **Beaver Builder** โ€” Page builder data in custom fields is carried over * ๐Ÿ›’ **WooCommerce** โ€” Migrate product pages with all custom fields and taxonomies * ๐Ÿ“ **Yoast SEO** โ€” SEO metadata (title, description, focus keyword) is exported and imported * ๐Ÿ“ **Rank Math** โ€” All SEO metadata stored in custom fields is preserved * ๐Ÿ–ผ๏ธ **Meta Box** โ€” Custom fields created with Meta Box are included in the export * ๐Ÿ” **WPML** โ€” Export translated content individually and import on multilingual sites * ๐Ÿ—‚๏ธ **Custom Post Type UI** โ€” Works with any custom post type registered by CPT UI == Installation == = ๐Ÿ“ฅ Install the Plugin = 1. Go to **Plugins โ†’ Add New** in your WordPress dashboard 2. Search for **"Post Page Import Export"** 3. Click **Install Now** and then **Activate** Or manually: 1. Download the plugin ZIP file 2. Upload the plugin folder to `/wp-content/plugins/` 3. Activate through **Plugins โ†’ Installed Plugins** = ๐Ÿ“ค How to Export = 1. Go to **Posts โ†’ All Posts** or **Pages โ†’ All Pages** 2. Hover over the post or page you want to export 3. Click the **"Export"** link in the row actions (next to Edit, Trash, View) 4. A JSON file will be downloaded to your computer โ€” that's it! = ๐Ÿ“ฅ How to Import = 1. Go to **Posts โ†’ All Posts** or **Pages โ†’ All Pages** 2. Click the **"Import"** button next to "Add New" at the top 3. In the popup modal, enter a **title** and choose your **JSON file** 4. Click **"Save & Close"** 5. Done! Your new post/page is created with all content, fields, taxonomies, and images = โš™๏ธ Settings = This plugin works **out of the box** โ€” no configuration needed. Once activated, Export and Import buttons appear automatically on your posts and pages list screens. == Frequently Asked Questions == = Does this work with custom post types? = Yes! The plugin works with any registered post type โ€” posts, pages, WooCommerce products, portfolios, and any custom post type. = Will my featured image be transferred? = Yes. The featured image is automatically downloaded from the source site and re-uploaded to the destination site. = Do I need ACF installed on both sites? = If your content uses ACF fields, yes โ€” ACF should be active on both the source and destination sites for full field support. = Can non-admin users export content? = No. Only administrators can export content for security reasons. = What file format is used? = Content is exported as a standard JSON file, which is lightweight and easy to transfer between sites. = Does it work with page builders? = Yes. Since page builders like Elementor, WPBakery, and Beaver Builder store their data in postmeta and post content, all of that data is preserved during export and import. = Can I import to a different post type? = The import creates a new post using the same post type as the original. The destination site needs to have the same post type registered. == Screenshots == 1. Export link in the row actions on the posts/pages list 2. Import button next to "Add New" on the posts/pages list 3. Import popup modal for uploading JSON files == Changelog == = 2.1.1 = * Added nonce and capability checks to import and export actions. * Added strict JSON validation before creating imported content. * Reject malformed files, missing post types, and unavailable post types. * Improved upload validation, input sanitization, and JSON output handling. * Fixed PHP encoding compatibility and WordPress coding-standard issues. * Updated compatibility with WordPress 7.1. = 2.1.0 = * Updated compatibility with WordPress 6.9 * Improved plugin description and documentation * Added support contact notice in import modal * Updated plugin tags for better discoverability = 2.0.5 = * Fix export file format = 2.0.4 = * Security patch = 2.0.3 = * Security patch = 2.0.2 = * Security patch = 2.0.1 = * Security patch = 2.0.0 = * Enhance the way the plugin works = 1.3.0 = * Fix broken templates that have complex ACF Fields * Test compatibility with WordPress 6.3.1 = 1.2.1 = * Test with WordPress 6.2 = 1.2.0 = * Showing import button when new page screen * Fix import file path = 1.1.0 = * Fix enqueue of CSS & JS files * Test with WordPress version 6.1.1 = 1.0.1 = * Check compatible with WordPress 6.0.1 = 1.0.0 = * First version of the plugin == Upgrade Notice == = 2.1.1 = Security and validation improvements for safer post and page imports and exports.