LemurLab
Lemur Lab
Skip to content
WordPress plugin

Ravinala
Post Migrator

Move your posts from one WordPress site to another in two clicks: base64 images, metadata, taxonomies — it's all in the JSON file. No mapping, no headaches.

Poste de travail d'un développeur Lemur Lab
Features

A complete migration in a single file

🖼️

Images in base64

Every image (featured, in-content, metadata, Elementor) is encoded into the JSON file. No separate FTP transfer.

📋

Metadata & taxonomies

ACF, Yoast SEO, Elementor, custom fields, categories, tags — all exported and reinjected automatically.

🔄

Matched by slug

Existing posts (same slug) are updated without duplicates. New ones are created. Nothing to map.

⚡

Incremental AJAX import

The browser sends one post at a time with a progress bar. No timeouts, even on large sites.

How to use it

Two steps, that's all

The tool handles the matching of URLs, Gutenberg IDs and taxonomy terms by itself.

  1. 1

    Export from the source site

    Tools → Post Migrator → Export. Tick the content types, choose the status, download the .json file.

  2. 2

    Import on the destination site

    Tools → Post Migrator → Import. Drag the file in, click Start import, watch the progress bar.

  3. 3

    Done

    Posts created or updated, images uploaded to the media library, URLs replaced throughout, taxonomies created where missing.

Under the hood

What actually happens

Export in plain PHP, import over AJAX in batches of one — no external dependency.

Export — full collection
// Le fichier JSON inclut pour chaque article :
[
  'post_title'     => '...',
  'taxonomies'     => ['category' => [...], 'post_tag' => [...]],
  'meta'           => ['_yoast_wpseo_title' => '...', '_elementor_data' => '...'],
  'featured_image' => ['b64' => 'data:image/...', 'alt' => '...'],
  'content_images' => ['https://old.com/.../img.jpg' => ['b64' => '...']],
]
Every source URL is replaced with the destination URL on import.
Import — one post at a time
// PHP sur le site destination :
$importer = new Ravinala_PM_Importer($source_url);
$result = $importer->import_post($post_data);
// Retourne : ['status' => 'created'|'updated'|'error', 'post_id' => 123]
Gutenberg IDs (wp:image, wp:gallery) are updated to match the new attachments.

Requires PHP 8.0+ and WordPress 6.0+. Raise memory_limit (≥ 256M) for sites with many images.

Migration without friction

Ready to move your posts?

Install the plugin on both sites, export, import. The file does the rest.