![How To Connect WordPress with N8N [AI Automation]](/_astro/how-to-connect-wordpress-with-n8n-ai-automation.BaB5noe0_Z17YPo8.webp)
Looking to connect WordPress with n8n for your automation workflows? Whether you need to fetch posts, pages, users or push data back to your WordPress site, n8n makes it incredibly easy to integrate these two powerful platforms.
In this guide, I’ll walk you through connecting WordPress with n8n step by step.
Why Connect WordPress with n8n?
n8n is a powerful workflow automation tool that lets you connect various apps and services. By connecting it with WordPress, you can:
- Fetch posts, pages, and users from WordPress
- Push data to WordPress (create posts, pages, etc.)
- Build complex automations around your WordPress content
- Save time on manual data entry and management
Step 1: Set Up Your n8n Workflow
Start by creating a new workflow in n8n. Add a manual trigger (Execute Workflow node) so you can test the connection.
Step 2: Add the WordPress Node
Click on the plus icon and search for “WordPress.” Select the WordPress node from the list.
Step 3: Configure the WordPress Node
For this example, we’ll fetch posts from WordPress:
- Choose Post as the resource
- Select Get Many as the operation
- Toggle to limit results (optional – e.g., 5 posts)
Step 4: Create Credentials
This is the most important part. Click on “Create New Credentials” and you’ll need:
- Username – Your WordPress username
- Password – An app password (not your regular login password)
- WordPress URL – Your website URL
How to Generate an App Password in WordPress
- Log in to your WordPress admin dashboard
- Go to Users → Profile
- Scroll down to the “Application Passwords” section
- Enter a name (e.g., “n8n”) and click “Add Application Password”
- Copy the generated password immediately
Paste this password back in n8n along with your username and WordPress URL, then click Save. Your credentials are now successfully created!
Step 5: Test the Connection
Click Execute Node to test. You should see your WordPress posts data appearing in n8n, both in Schema and JSON format.
What Else Can You Do?
The WordPress node in n8n isn’t limited to just fetching posts. You can also:
- Fetch pages – Get all pages from your WordPress site
- Get users – Retrieve user data
- Create posts – Push data to WordPress
- Create pages and users
- Make custom API calls for advanced use cases
Important Note About Triggers
Currently, n8n doesn’t have native WordPress triggers. This means you can’t automatically run a workflow when someone publishes a new post. However, you can work around this using webhooks.
If you want a tutorial on setting up WordPress triggers in n8n using webhooks (so your workflow runs automatically when new content is published), let me know in the comments!
Conclusion
Connecting WordPress with n8n opens up endless automation possibilities. Whether you’re managing content, syncing data, or building complex workflows, this integration saves time and reduces manual effort.
The process is straightforward:
- Create your n8n workflow
- Add the WordPress node
- Generate an app password in WordPress
- Test and start automating!
- Found this helpful? Subscribe for more n8n tutorials and AI automation content!




![Image related to how to connect wordpress with n8n [ai automation]](/_astro/how-to-connect-wordpress-with-n8n-ai-automation.BaB5noe0_1n2ge1.webp)

