WordPress to Medium Content Syndication - n8n Workflow

Automate cross-posting from WordPress to Medium using this efficient n8n workflow. Scrape blog content, limit items, and publish automatically using specific n8n node configurations.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Content managers and bloggers seeking reliable automation for multi-platform publishing.

  • Users who need advanced web scraping capabilities using an n8n workflow.

  • Anyone looking for proven n8n templates to handle content syndication tasks.

  • Technical users wanting to understand how to leverage the n8n node for HTTP requests and HTML parsing.

Overview

This comprehensive n8n workflow is designed to streamline content syndication, saving content strategists significant time. By leveraging powerful web scraping techniques, this automation automatically fetches the latest blog posts from a specified WordPress site and publishes them directly to Medium. The architecture of this n8n template ensures robust handling of URLs, content extraction, and loop processing.

The core value of this n8n workflow lies in its ability to parse complex HTML structures to accurately extract titles and full article body, ensuring your syndicated content is rich and correctly formatted on Medium. This specific n8n configuration uses a manual n8n trigger, allowing you to control exactly when the syndication process runs.

How it Works

This automation begins with a manual n8n trigger, initiating the content synchronization process when you click 'Execute Workflow.'


  1. Initial Scrape (HTTP Request): The workflow starts by fetching the HTML content of the target WordPress blog index page (e.g., https://mailsafi.com/blog/).

  2. URL and Title Extraction (HTML1): An n8n node dedicated to HTML parsing extracts all visible post titles and their corresponding URLs from the index page.

  3. Data Structuring (Item Lists): The workflow uses an Item Lists n8n node to pair the extracted titles and links into clean, structured individual items.

  4. Limiting Posts (Item Lists1): To prevent overwhelming the Medium API, this n8n workflow uses another Item Lists n8n node to limit the syndicated batch to the latest 5 items.

  5. Iteration (Loop Over Items): A splitInBatches n8n node iterates over each of the 5 blog post links.

  6. Detailed Post Fetch (HTTP Request1): For each link, a dedicated HTTP Request n8n node fetches the full HTML content of the individual blog post.

  7. Content Parsing (HTML): A subsequent HTML n8n node extracts specific elements: the Title, the Introduction, and the full Header (the complete article body as raw HTML).

  8. Publication (Medium): The final n8n node is the Medium node, which takes the extracted title and HTML content and publishes the article to your linked Medium account, automatically setting the content format and applying predefined tags.

Installation Guide

To set up this efficient n8n workflow, follow these steps:


  1. Importing: Copy the provided JSON data. Navigate to your n8n instance and create a new workflow. Use the 'Import from JSON' feature to load this n8n template.

  2. Credentials Setup: You must configure credentials for the Medium n8n node. Click on the Medium node, select 'Create New Credential,' and follow the steps to authenticate your Medium account.

  3. Configuration:

Review the first HTTP Request n8n node and ensure the URL matches the index page of the WordPress site you wish to scrape.
Inspect the CSS selectors in the HTML n8n nodes (HTML1 and HTML) to ensure they correctly target the structure of your specific blog site. These n8n templates are pre-configured but may require minor adjustments for unique site layouts.

  1. Execution: Use the manual n8n trigger to test the n8n workflow. Once satisfied, you can consider replacing the manual trigger with a Schedule n8n node for recurring automation.

Node Details


  • When clicking "Execute Workflow" (Manual Trigger): This simple n8n trigger manually starts the content syndication process.

  • HTTP Request: The initial n8n node responsible for fetching the HTML of the main blog listing page.

  • HTML1: An HTML n8n node configured to extract array lists of post titles (.entry-title > a) and URLs (.lae-read-more > a, extracting the href attribute).

  • Item Lists (Split): Splits the combined title/link arrays into individual items, crucial for the subsequent loop structure of the n8n workflow.

  • Item Lists1 (Limit): Uses the 'limit' operation to restrict the n8n workflow iteration to the first 5 blog posts found.

  • Loop Over Items (Split in Batches): This core control n8n node ensures that subsequent steps (fetching full article content) are executed sequentially for each post URL.

  • HTTP Request1: Fetches the full content of the individual post URL (={{ $json.Link }}).

  • HTML: Extracts the final publication data, including Title (from h2.single-post-title) and the full HTML content (Header, extracted from div.kiwi-highlighter-content-area).

  • Medium: The final action n8n node. It creates a new post using the extracted Title and Header content, formatted as HTML, and set to public status. This completes the n8n workflow.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all
Created by

Automation expert with years of experience helping businesses improve their efficiency and productivity with smart automations that are affordable, scalable, and flexible.

Featured*