WordPress Blog to Google Sheets Sync (Posts, Categories, Tags, Media)

WordPress Blog to Google Sheets Sync
Posts โ€ข Categories โ€ข Tags โ€ข Media

๐Ÿงฉ Overview This n8n workflow automatically syncs your WordPress website content โ€” including posts, categories, tags, and media โ€” into Google Sheets.

It helps automate content reporting, SEO analysis, and data backups.
The workflow can run on schedule or on demand via a webhook.

๐Ÿ’ก Use cases Maintain a live database of blog posts in Google Sheets.
Create dashboards in Google Data Studio or Looker Studio.
Track new articles for newsletters or social media scheduling.
Backup all WordPress content and media outside of your CMS.

โš™๏ธ Prerequisites

Before importing the workflow, ensure you have:

A WordPress website with the REST API enabled (default in WP 4.7+).
Authentication: either Application Passwords or Basic Auth credentials.
A Google Sheet with the following tabs: Posts Categories Tags Media The following credentials configured in n8n: HTTP Basic Auth (for WordPress) Google Sheets OAuth2

๐Ÿš€ Setup instructions

Import the workflow into your n8n instance.
Replace all example WordPress API URLs with your domain, for example: https://yourdomain.com/wp-json/wp/v2/ Connect your HTTP Basic Auth credentials (WordPress username + Application Password).
Connect your Google Sheets OAuth2 account.
Update the spreadsheet ID in each Google Sheets node with your own.
Adjust the Schedule Trigger (e.g. run daily at 2:00 AM).
Run once manually to verify data sync.

๐Ÿง  Workflow structure

| Section | Description | |----------|--------------| | Schedule / Webhook Trigger | Starts the workflow manually or automatically | | Variables & Loop Vars | Initialize pagination for REST API requests | | Get Posts โ†’ Split Out โ†’ Update Posts | Fetch and update all WordPress posts | | Get Categories โ†’ Update Categories | Sync WordPress categories | | Get Tags โ†’ Update Tags | Sync WordPress tags | | Get Media โ†’ Split Out โ†’ Update Media | Sync media library (images, videos, etc.) | | IF Loops | Handles pagination logic until all items are retrieved |

โš ๏ธ Notes & Limitations

Works with standard WordPress REST API endpoints only.
Custom post types require editing endpoint URLs.
The per_page value defaults to 10; increase for faster syncs.
For large sites, consider increasing n8n memory or adding execution logs.
Avoid running the workflow too frequently to prevent API rate limits.

๐ŸŽฅ Video Tutorial

A step-by-step setup guide is available here: ๐Ÿ‘‰ https://www.youtube.com/watch?v=czSMWyD6f-0

Please subscribe to my YouTube channel to support me: ๐Ÿ‘‰ https://www.youtube.com/@gregfrolovpersonal

๐Ÿ‘จโ€๐Ÿ’ป Author

Created by: Grigory Frolov
SEO & Automation Specialist โ€” helping businesses integrate WordPress, AI, and data tools with n8n.

๐Ÿงพ License

This workflow is provided under the MIT License.
Feel free to use, modify, and share improvements with the community.

0
Downloads
15
Views
8.44
Quality Score
beginner
Complexity
Author:Grigory Frolov(View Original โ†’)
Created:10/10/2025
Updated:10/27/2025

๐Ÿ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments