Skip to main content

Publish WordPress posts from Google Sheets with images and tags

Workflow preview

Workflow preview
100%
Publish WordPress posts from Google Sheets with images and tags preview
Open on n8n.io

1. Workflow Overview

Who this is for This workflow is for content teams, marketers, and solo site owners who draft posts in Google Sheets and want a reliable way to publish to WordPress automatically — including featur...

Best for

  • Content Creation automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.splitout, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Grigory Frolov.

Original n8n.io source

1.1 Workflow description

Title
Publish WordPress posts from Google Sheets with images and tags
Workflow name
Publish WordPress posts from Google Sheets with images and tags

Who this is for

This workflow is for content teams, marketers, and solo site owners who draft posts in Google Sheets and want a reliable way to publish to WordPress automatically — including featured images and tags.

What it does

  • Pulls rows from a Google Sheet where status = READY
  • Processes rows one-by-one (safe for multiple posts in a single run)
  • If image_url is present, downloads the image and uploads it to WordPress Media, then uses it as featured_media
  • Parses hashtags into clean tag slugs, checks if each tag exists in WordPress, and creates missing tags
  • Publishes the post via the WordPress REST API (/wp-json/wp/v2/posts) with the collected tag IDs
  • Updates the same Google Sheets row to POSTED and writes posted_at + post_url

How to set up

  1. Make a copy of the Google Sheets template: https://docs.google.com/spreadsheets/d/1lJDeaN75c1hBk0gddsdvbeXDuxDr5Q-NablHRSjvLjQ/edit?gid=0#gid=0
  2. Connect Google Sheets credentials in n8n and point the workflow to your spreadsheet + sheet tab.
  3. Connect WordPress credentials (recommended: Application Password) for REST API access.
  4. Ensure your sheet has columns like: id, status, title, excerpt, body, image_url, hashtags.

Requirements

  • WordPress site with REST API enabled
  • Credentials set via n8n (no hardcoded secrets)
  • Publicly accessible image_url (or adjust the workflow for private assets)

How to customise

  • Swap Manual Trigger for Cron to publish on a schedule
  • Add categories, custom post types, or draft mode
  • Extend error handling to write error_message and set status = ERROR when publishing fails

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - If ($image)

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 7 - Load $image as binary

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 8 - Upload $image to WP

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 9 - Get tag_id from WP

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 12 - Update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 13 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 15 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 16 - Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 19 - If ($tags)

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 20 - Parse $tags

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 22 - Create new tag

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 23 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Prepare data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Publish WordPress posts from Google Sheets with images and tags
Complexity advanced
Nodes 30
Categories Content Creation
Author Grigory Frolov
Published 31 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13127/13127.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Publish WordPress posts from Google Sheets with images and tags do?

Who this is for This workflow is for content teams, marketers, and solo site owners who draft posts in Google Sheets and want a reliable way to publish to WordPress automatically — including featur...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation use case.