Bridges WordPress MySQL databases and Payload through a plugin configured with a mode setting. It can run on PostgreSQL only, on the WordPress database only, on both with per-collection mapping, or in a migration mode with an admin panel for moving data from WordPress to PostgreSQL. Collections map to WordPress post types, fields to post meta, and users to WordPress user tables.
WordPress database adapter and migration plugin for Payload CMS
Installation
npm i @launchthat.apps/payload-wordpress5
Stars
1
Forks
0
Open Issues
1 years ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
50 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 5 |
| Dec 4, 2026 | 5 |
| Dec 3, 2026 | 5 |
| Dec 2, 2026 | 5 |
| Dec 1, 2026 | 5 |
| Nov 30, 2026 | 5 |
| Nov 29, 2026 | 5 |
| Nov 28, 2026 | 5 |
| Nov 27, 2026 | 5 |
| Nov 26, 2026 | 5 |
| Nov 25, 2026 | 5 |
| Nov 24, 2026 | 5 |
| Nov 23, 2026 | 5 |
| Nov 22, 2026 | 5 |
| Nov 21, 2026 | 5 |
| Nov 20, 2026 | 5 |
| Nov 19, 2026 | 5 |
| Nov 18, 2026 | 5 |
| Nov 17, 2026 | 5 |
| Nov 16, 2026 | 5 |
| Nov 15, 2026 | 5 |
| Nov 14, 2026 | 5 |
| Nov 13, 2026 | 5 |
| Nov 12, 2026 | 5 |
| Nov 11, 2026 | 5 |
| Nov 10, 2026 | 5 |
| Nov 9, 2026 | 5 |
| Nov 8, 2026 | 5 |
| Nov 7, 2026 | 5 |
| Nov 6, 2026 | 5 |
| Nov 5, 2026 | 5 |
| Nov 4, 2026 | 5 |
| Nov 3, 2026 | 5 |
| Nov 2, 2026 | 5 |
| Nov 1, 2026 | 5 |
| Oct 31, 2026 | 5 |
| Oct 30, 2026 | 5 |
| Oct 29, 2026 | 5 |
| Oct 28, 2026 | 5 |
| Oct 27, 2026 | 5 |
| Oct 26, 2026 | 5 |
| Oct 25, 2026 | 5 |
| Oct 24, 2026 | 5 |
| Oct 23, 2026 | 5 |
| Oct 22, 2026 | 5 |
| Oct 21, 2026 | 5 |
| Oct 20, 2026 | 5 |
| Oct 19, 2026 | 5 |
| Oct 18, 2026 | 5 |
| Oct 17, 2026 | 5 |
| Oct 16, 2026 | 5 |
| Oct 15, 2026 | 5 |
| Oct 14, 2026 | 5 |
| Oct 13, 2026 | 5 |
| Oct 12, 2026 | 5 |
| Oct 11, 2026 | 5 |
| Oct 10, 2026 | 5 |
| Oct 9, 2026 | 5 |
| Oct 8, 2026 | 5 |
| Oct 7, 2026 | 5 |
| Oct 6, 2026 | 5 |
| Oct 5, 2026 | 5 |
| Oct 4, 2026 | 5 |
| Oct 3, 2026 | 5 |
| Oct 2, 2026 | 5 |
| Oct 1, 2026 | 5 |
| Sep 30, 2026 | 5 |
| Sep 29, 2026 | 5 |
| Sep 28, 2026 | 5 |
| Sep 27, 2026 | 5 |
| Sep 26, 2026 | 5 |
| Sep 25, 2026 | 5 |
| Sep 24, 2026 | 5 |
| Sep 23, 2026 | 5 |
| Sep 22, 2026 | 5 |
| Sep 21, 2026 | 5 |
| Sep 20, 2026 | 5 |
| Sep 19, 2026 | 5 |
| Sep 18, 2026 | 5 |
| Sep 17, 2026 | 5 |
| Sep 16, 2026 | 5 |
| Sep 15, 2026 | 5 |
| Sep 14, 2026 | 5 |
| Sep 13, 2026 | 5 |
| Sep 12, 2026 | 5 |
| Sep 11, 2026 | 5 |
| Sep 10, 2026 | 5 |
| Sep 9, 2026 | 5 |
| Sep 8, 2026 | 5 |
| Sep 7, 2026 | 5 |
| Sep 6, 2026 | 5 |
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/956042017-root)<a href="https://payloaddirectory.dev/plugins/956042017-root"><img src="https://payloaddirectory.dev/badge/956042017-root.svg" alt="Payload Directory"></a>README
This plugin provides a bridge between WordPress MySQL databases and PayloadCMS, allowing you to:
npm install @launchthat.apps/payload-wordpress
# or with yarn
yarn add @launchthat.apps/payload-wordpress
# or with pnpm
pnpm add @launchthat.apps/payload-wordpress
import { wordpressPlugin } from "@launchthat.apps/payload-wordpress";
import { buildConfig } from "payload/config";
export default buildConfig({
// Your Payload config
collections: [
// Your collections
],
// Add the WordPress plugin
plugins: [
wordpressPlugin({
mode: "postgres-only", // 'postgres-only', 'sql-only', 'both', or 'migration'
// WordPress database configuration
wordpressConfig: {
host: process.env.WORDPRESS_DB_HOST || "localhost",
user: process.env.WORDPRESS_DB_USER || "root",
password: process.env.WORDPRESS_DB_PASSWORD || "",
database: process.env.WORDPRESS_DB_NAME || "wordpress",
port: parseInt(process.env.WORDPRESS_DB_PORT || "3306", 10),
prefix: process.env.WORDPRESS_DB_PREFIX || "wp_",
},
// PostgreSQL configuration
postgresConfig: {
pool: {
connectionString:
process.env.DATABASE_URI ||
"postgresql://postgres:postgres@localhost:5432/payload",
},
},
// Only needed in 'both' mode to define which collections use which database
collectionMapping: {
posts: "wordpress",
pages: "wordpress",
users: "postgres",
// ... other collections
},
// Only needed in 'both' mode to define which globals use which database
globalMapping: {
header: "postgres",
footer: "postgres",
// ... other globals
},
}),
],
});
In this mode, the plugin behaves exactly like the native PostgreSQL adapter, using PostgreSQL for all collections and globals.
In this mode, the plugin uses your WordPress MySQL database for all collections and globals, mapping Payload's data structure to WordPress tables.
In this mode, you can specify which collections and globals should use PostgreSQL and which should use the WordPress database.
In this mode, both databases are connected, but the plugin provides a UI panel to migrate data from WordPress to PostgreSQL.
The plugin automatically adds an admin UI panel based on your selected mode:
When using the WordPress database, the plugin maps Payload's data model to WordPress tables:
wp_postswp_postmetawp_users and wp_usermeta# Install dependencies
pnpm install
# Build the plugin
pnpm build
MIT
payload portable plugin
Export all collections and globals to one JSON file and import them back from the Payload admin panel
43247/wk0v3
import export
Import and export Payload collection data from within the admin panel
9757.1k/wk46.1kv3 v4
payload plugin import export
Import and export collection data as JSON or CSV files from the Payload admin
501.2k/wk23v3
payload extended import export plugin
Import CSV, JSON, Excel and TSV files into Payload collections with field mapping and preview
3526/wk31v3
payload typeid
TypeID identifiers for Payload collections, as native IDs or an extra type_id field, with PostgreSQL integrity guards
802.6k/wk0v3
payload exportcollections plugin
Export collection data to CSV or JSON from list views in the admin panel
78448/wk41v?