Write in Notion, publish in WordPress. Pagerail turns the rows of a Notion database into WordPress posts or pages and keeps them up to date. Content becomes native Gutenberg blocks, images are copied into your Media Library, and nothing on your site depends on Notion staying online.
Pagerail syncs any number of Notion
databases and single pages, with no limit on sources or rows.
Teams that use Notion as a CMS for WordPress keep drafting, reviewing and scheduling in a Notion database; a status property decides what gets published, and Pagerail publishes the Notion pages to WordPress on a schedule or when you click Sync now. If you only want to import a Notion database into WordPress once, run one sync and then untick "Include this source in the automatic scheduled sync".
What it does
- Database → posts, pages or any post type. One sync source maps one Notion database to the post type you choose: posts, pages or any public custom post type that uses the editor. Single Notion pages can be synced too.
- Field mapping with sensible defaults. Title, slug, status, publish date, excerpt, categories, tags and featured image (a files/URL property or the page cover). Pagerail suggests the mapping from your property names and types.
- Status mapping. Map Notion status/select/checkbox values to Published, Draft, Pending review, Private or "don't sync". Optional row filter ("only rows where Publish is checked").
- Real block editor content. Paragraphs with bold/italic/strikethrough/code/underline and links, headings, nested bulleted/numbered lists, to-do lists, quotes, callouts, code with language, dividers, tables, toggles (as Details blocks), columns, images with captions and alt text, video/embeds (oEmbed when WordPress supports the provider), bookmarks, files and PDFs, equations, synced blocks. Nested toggles and callouts work at any depth. Posts open in the block editor without "invalid block" warnings.
- Images that don't break. Notion file links expire after an hour, so Pagerail downloads images into the Media Library, de-duplicates them and reuses them on later syncs.
- Links between pages. A link or mention of another synced Notion page becomes the WordPress permalink. Otherwise it links to the Notion page or becomes plain text (your choice).
- Readable on every theme. Notion text colours are ignored by default (optional setting to keep them).
- Incremental and safe. Only changed rows are rewritten. Rows deleted or archived in Notion can move the post to the Trash, back to Draft, or be ignored. Large databases sync in small batches that resume where they stopped, so there are no server timeouts.
- Adopt existing posts. Optionally match Notion rows to existing WordPress posts by slug or by a "WP ID" property, so old content can be managed from Notion without duplicates.
- Scheduled sync (WP-Cron) every 15 minutes, hourly, twice daily or daily, a Sync now button with live progress, and a warning when WP-Cron has not run recently.
- Clear onboarding. After you paste your Notion API token, Pagerail shows exactly which databases your connection can see. If it sees none, it tells you how to share a database with the connection.
- Sync log and diagnostics. The last 200 log entries on the settings page, an admin notice on errors, and a Copy diagnostics button (versions, settings and recent log lines, never your token) for support requests.
- Per-post actions. "Re-sync from Notion" and "Edit in Notion" links in the Posts and Pages lists.
- WP-CLI.
wp pagerail sync [--source=<id>] [--dry-run] [--force], wp pagerail sources, wp pagerail log, wp pagerail connect, wp pagerail add-source. A real server cron job running wp pagerail sync works on cached or password-protected sites where WP-Cron does not fire.
Pagerail Pro
The free plugin has no limits. An optional, separate add-on adds integrations whose code is not in this plugin: custom fields (post meta and ACF), any taxonomy, Yoast SEO and Rank Math fields, author mapping by email, a sync webhook for Notion automations, Make and Zapier, and writing the WordPress URL and status back to Notion.
Pagerail Pro is a one-time purchase with lifetime updates:
Pagerail Pro features and pricing.
Privacy
Pagerail does not track you and sends no data to the plugin author. It only talks to the Notion API with the token you provide, and downloads the images and files that your Notion pages contain. See "External services" below.
- Install and activate Pagerail from Plugins → Add New (or upload the zip).
- In Notion, open the developer portal (https://app.notion.com/developers/connections), create a new connection with the API token authentication method ("read content" is enough) and copy the token.
- In Notion, open your database, click ••• → Connections and add your connection. Pagerail can only see pages and databases you share this way.
- In WordPress, go to Settings → Pagerail, paste the token, click Save token and then Test connection. Your database appears in the list.
- Click Add sync source (or "Use this database"), check the field and status mapping, choose the post type, and save.
- Click Sync now. After that, Pagerail syncs on the schedule you choose under Settings (hourly by default).
Recommended database properties (mapped automatically): Name (title), Slug (text), Status (status: Draft, In review, Published, Archived), Publish date (date), Excerpt (text), Category (select), Tags (multi-select), Featured image (files & media).
Optional, for sites where WP-Cron does not run reliably (page cache, basic auth, low traffic): add a real server cron job, e.g. every 15 minutes:
cd /path/to/wordpress && wp pagerail sync --quiet.