Hot Line:

+1 (917) 730-2010

AI-Powered Web Development, SEO, Shopify & WordPress — Get a Free Consultation Today. Get Started

Tutorials

How To Connect WordPress with N8N [AI Automation]

  • 16 Mar, 2026
  • 0 Comments
  • By WebSensePro
How To Connect WordPress with N8N [AI Automation]

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:

  1. Choose Post as the resource
  2. Select Get Many as the operation
  3. 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

  1. Log in to your WordPress admin dashboard
  2. Go to Users → Profile
  3. Scroll down to the “Application Passwords” section
  4. Enter a name (e.g., “n8n”) and click “Add Application Password”
  5. 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:

  1. Create your n8n workflow
  2. Add the WordPress node
  3. Generate an app password in WordPress
  4. Test and start automating!
  5. Found this helpful? Subscribe for more n8n tutorials and AI automation content!
5/5 · 20 votes
Tags:
    Background Pattern

    Want to work with us?

    Let’s build your website, grow your traffic, and automate your business with AI.

    Background Pattern