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.
Related Templates
Restore your workflows from GitHub
This workflow restores all n8n instance workflows from GitHub backups using the n8n API node. It complements the Backup ...
Verify Linkedin Company Page by Domain with Airtop
Automating LinkedIn Company URL Verification Use Case This automation verifies that a given LinkedIn URL actually belo...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments