WP to

Migrates WordPress sites to Payload from a WXR export file

Community 1 26/wk MIT v0.2.0

Installation

pnpm add wp-to-payload

About

WP to Payload moves a WordPress site into a Payload project from the standard WordPress export file, without needing access to the old site. It brings over posts, pages, categories, tags, authors and media, plus custom fields, menus and Polylang translations. Internal links are rewritten to the new URLs.

An analysis step shows what a site contains and how hard the move will be before any content is written. Running the import again updates earlier content instead of creating duplicates. A redirect map for the old URLs can be generated for Next.js, Apache, nginx, Netlify or the Payload redirects plugin.

Package info

Package name
wp-to-payload
Latest version
0.2.0
Unpacked size
519 kB
License
MIT
Weekly downloads
26
Last publish
Nov 3, 2026

Idempotent seed runner that fills a Payload database with ordered, cross-referenced content

Migrates WordPress posts, pages, media, SEO and redirects into Payload

Converts WordPress WXR exports into Astro, Next.js, Payload or Pruvious projects

Runs create, update, delete and upsert on Payload collections from the terminal