What this template does

Use Notion as your editorial CMS while publishing to WordPress. When you mark a Notion page as Ready, this scenario fetches its content, converts the Notion blocks to clean HTML, and publishes a new WordPress post with proper meta tags, featured image, category and tags.

Use cases

  • Content teams who write in Notion but publish to a WordPress blog
  • Agencies managing multi-client content via shared Notion workspaces
  • Solo creators replacing the WordPress editor with Notion's superior writing UX
  • Newsletter writers cross-publishing to WordPress

How it works

  1. Watch Notion database

    Trigger fires when a page's Status property changes to Ready.

  2. Fetch full page content

    Use the Get Page Blocks module to retrieve all content blocks (headings, paragraphs, images, lists).

  3. Convert to HTML

    Iterate through blocks and convert each block type to HTML using a switch case in the Set Variable module.

  4. Upload featured image

    If the Notion page has a cover, upload it to WordPress Media Library and capture the media ID.

  5. Create WordPress post

    Use the WP REST API module to POST the article with title, content, excerpt, categories, tags, featured_media.

  6. Update Notion with URL

    Write the published WordPress URL back to the Notion page's URL property and change Status to Published.

Setup time

Around 20 minutes including WordPress Application Password setup.

Customization ideas

  • Auto-generate SEO meta description with GPT-4 if not manually filled in Notion
  • Add Yoast SEO meta fields support for richer SEO data
  • Schedule publishing instead of immediate publish
  • Cross-post to LinkedIn and Twitter as part of the same scenario