Linux 软件免费装
Banner图

Pagerail – Sync from Notion

开发者 okanagraham
更新时间 2026年12月1日 12:07
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

sync import cms publishing notion

下载

0.1.1 0.2.1

详情介绍:

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 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.

安装:

  1. Install and activate Pagerail from Plugins → Add New (or upload the zip).
  2. 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.
  3. In Notion, open your database, click ••• → Connections and add your connection. Pagerail can only see pages and databases you share this way.
  4. In WordPress, go to Settings → Pagerail, paste the token, click Save token and then Test connection. Your database appears in the list.
  5. Click Add sync source (or "Use this database"), check the field and status mapping, choose the post type, and save.
  6. 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.

屏幕截图:

  • The sync source editor: field mapping with automatic suggestions, status mapping, row filter and what to do with removed rows.
  • Sync now with live progress, the sync sources table and the sync log.
  • A Notion page converted to native blocks in the WordPress block editor (headings, lists, toggles, callouts, table, images).
  • Per-post "Re-sync from Notion" and "Edit in Notion" links in the Posts list.

升级注意事项:

0.2.1 Everything from 0.1.1 (no limits, custom post types, sync frequency, atomic sync lock) plus a dismissible note about the optional add-on. 0.1.1 Unlimited database sources, custom post types, a sync frequency setting and an atomic sync lock. 0.1.0 First release.

常见问题:

Pagerail says it cannot find any databases

Your database is not shared with your Notion connection yet. In Notion, open the database (the full-page view, not a linked view), click ••• in the top right → Connections → find your connection and confirm. Then click Refresh under "Databases shared with this connection" on the Pagerail settings page. Sharing a parent page also shares the databases inside it.

The sync finished but no posts appeared

Check the status mapping: rows whose status maps to "Don't sync" (e.g. Idea, Archived) are skipped, as are rows that don't match the optional row filter. The sync log on the settings page says how many rows were "not synced".

Does it sync both ways?

No. Notion is the source of truth; changes made to a synced post in WordPress are overwritten by the next sync of that row.

What happens when I delete a row in Notion?

You choose per source: move the post to the Trash (default), set it back to Draft, or leave it alone. If the row comes back, the post is restored.

Are my images safe when Notion links expire?

Yes. Images are copied into your Media Library during the sync, so your posts never point at expiring Notion URLs. Unchanged images are not downloaded again.

Which Notion blocks are supported?

Paragraphs, headings (incl. toggle headings), bulleted/numbered/to-do lists, quotes, callouts, code, dividers, tables, toggles, columns, images, video, audio, embeds, bookmarks, files, PDFs, equations (as code) and synced blocks. Child pages and child databases are skipped (they can be synced as their own source). Unknown blocks are skipped safely and listed in the log.

Scheduled syncs don't run

WP-Cron only runs when someone visits your site, and some page caches or password protection stop it. Pagerail warns you on its settings page when this happens. Add a real cron job that runs wp pagerail sync, or use the "Sync now" button.

Is my Notion token safe?

It is stored encrypted (AES-256-GCM with a key derived from your site's security salts), not autoloaded, never shown again in full and never included in diagnostics. You can also define it in wp-config.php as PAGERAIL_NOTION_TOKEN.

How many databases can I sync?

As many as you like. Each sync source is one Notion database or one single page; there is no limit on the number of sources or rows.

Will deleting the plugin delete my posts?

No, not by default. Under "When Pagerail is deleted" on the settings page you can opt in to removing its settings, and separately the synced posts and imported media.

更新日志:

0.2.1 0.1.1 0.1.0