Automate WordPress Blog Publishing to Medium with n8n

This n8n workflow automates fetching posts from a WordPress blog, extracting content, and publishing them to Medium. It saves hours in manual content sharing by streamlining blog discovery, content extraction, and posting.
manualTrigger
httpRequest
html
+3
Workflow Identifier: 1486
NODES in Use: manualTrigger, httpRequest, html, itemLists, splitInBatches, medium
Automate WordPress to Medium with n8n

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow checks a WordPress blog homepage for new posts, gets each post’s title and content, and then posts that content automatically to Medium. It saves hours of manual copying and stops mistakes like missing images or links.

The workflow fetches the blog page, finds post titles and links, loads each post’s full content, extracts key parts like the title and introduction, and publishes these as new posts on Medium.


Tools and Services Used

  • WordPress Blog URL: Public blog page for fetching posts.
  • n8n Automation Platform: Runs the workflow with various nodes like HTTP Request, HTML extractors, and Medium node.
  • Medium API: Posts content directly to Medium using API credentials.

Input → Process → Output Explained

Input

  • The blog homepage URL, for example, https://mailsafi.com/blog/
  • Medium API credentials set up inside n8n for posting.

Processing Steps

  1. Fetch the main blog page HTML.
  2. Extract all post titles and their links using CSS selectors.
  3. Split the list to get individual posts.
  4. Limit the number of posts to process at once.
  5. Loop over each post URL one by one.
  6. Fetch the full HTML content of each post.
  7. Extract detailed parts: post title, intro paragraph, and full content in HTML.
  8. Create a new Medium post with this data, including tags and public status.

Output

New Medium posts appear matching the WordPress blog posts, published automatically.


Who Should Use This Workflow

This workflow fits users who want to share WordPress blog posts on Medium without manually copying content.

Good for people who publish regularly and want to save time or avoid manual errors.


Beginner Step-by-Step: How to Use This Workflow in Production

Importing the Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Inside the n8n editor, choose “Import from File” and select the downloaded workflow.

Setup Credentials and Settings

  1. Go to the Medium node and add your Medium API Key as credentials.
  2. Update any IDs, emails, or URLs if needed, especially the WordPress blog homepage URL.
  3. Check any code or expressions for URLs or paths and update as per your blog if needed.

Testing and Activating

  1. Run the workflow manually to test that posts get extracted and published correctly.
  2. Look at the output and logs for errors or missing content.
  3. If all looks good, activate the workflow to run either manually or add a Cron trigger for regular scheduling.

For anyone hosting n8n themselves, see self-host n8n for helpful setup resources.


Customizations and Enhancements

  • You can add a Cron trigger to run this workflow regularly without manual start.
  • Filter posts by date if you want to process only recent posts.
  • Modify Medium tags in the Medium node to match your topic better.
  • Use additional CSS selectors to extract images or author info for richer posts.

Troubleshooting Common Issues

  • If the HTML extraction does not return content, check and update CSS selectors in the HTML nodes.
  • Medium publishing may fail if API credentials are wrong or expired; refresh credentials in n8n.
  • If too many posts slow down or timeout the workflow, limit batch size or add delays.

Pre-Production Checklist

  • Make sure the WordPress blog page is publicly reachable.
  • Verify the CSS selectors match the current blog HTML.
  • Test Medium API credentials with a manual post.
  • Run the workflow with a few posts first to confirm success.

Deployment

After testing, activate the workflow in n8n.

Add a Cron trigger node if you want the posts to be published regularly or automatically.

Watch the workflow runs and logs to spot any issues early.


Summary of Benefits and Outcome

✓ Saves many hours of manual work.

✓ Stops errors like missing images or broken links.

✓ Automatically posts WordPress blog content to Medium.

→ You get fresh Medium posts each time new WordPress posts appear.


Automate WordPress to Medium with n8n

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes. The user needs to update the HTTP requests and HTML extraction CSS selectors to match the new blog platform’s structure.
Yes. Each post created via the Medium node counts against the user’s Medium API usage limits.
Users should ensure their n8n instance is secure, uses encrypted credentials, and access is restricted.
It can, but the user should add rate limits and batch processing to avoid timeouts or API limits.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.